diff options
-rw-r--r-- | checkout.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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" |