From 25edaf328f7ce772ea7c7e923a1e2214b615b7d9 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 29 Aug 2017 02:16:16 -0400 Subject: Update checkout op Catch when trying to checkout various reserved commit names, TRAC and BASE needed special attention. --- checkout.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/checkout.sh b/checkout.sh index 9ae1235..59cc82e 100644 --- a/checkout.sh +++ b/checkout.sh @@ -92,9 +92,16 @@ function systr_checkout exit fi + if [[ "$version" == "TRAC" ]]; then + version="$TRAC" + fi + commit=$(systr_repo_resolve_reference "$version") echo "$commit" >.systr/BASE - echo "$version" >.systr/TRAC + + if [[ "$version" != "BASE" ]]; then + echo "$version" >.systr/TRAC + fi if [[ "$commit" == "NULL" ]]; then echo "Nothing to checkout" -- cgit v1.2.3