From 6eb5c49964d0c5d4bbaa4391112db1ee0e5a15c2 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 27 Aug 2017 20:51:29 -0400 Subject: Update status command Brought forward the status command... now using resolve_reference function instead of the old 'get_commit'. Added this file to the make script. --- make.sh | 2 +- status.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index fb771a8..590d63c 100755 --- a/make.sh +++ b/make.sh @@ -1,4 +1,4 @@ #!/usr/bin/bash echo "#!/usr/bin/bash -e" >systrunk -cat rsync.sh repo-access.sh repo-mutate.sh checkout.sh main.sh >>systrunk +cat rsync.sh repo-access.sh repo-mutate.sh checkout.sh status.sh main.sh >>systrunk chmod +x systrunk diff --git a/status.sh b/status.sh index 893dde2..6b99eb5 100644 --- a/status.sh +++ b/status.sh @@ -15,7 +15,7 @@ function systr_status if [ -f ".systr/MERG" ]; then read MERG <.systr/MERG - mergcommit=$(get_commit "$MERG") + mergcommit=$(systr_repo_resolve_reference "$MERG") if [[ "$MERG" == "TRAC" ]]; then echo "Update in progress, to $mergcommit" @@ -26,7 +26,7 @@ function systr_status echo "" fi - traccommit=$(get_commit "$TRAC") + traccommit=$(systr_repo_resolve_reference "$TRAC") if [[ "$TRAC" == "$traccommit" ]]; then echo "Not tracking any branch" -- cgit v1.2.3