diff options
author | Malf Furious <m@lfurio.us> | 2017-08-29 02:25:57 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-08-29 02:25:57 -0400 |
commit | cd120958926681c8f2a870f2b0a480e056868a15 (patch) | |
tree | e8927eb2f683be8f398b0942a37add9c279ada49 /commit.sh | |
parent | 2ceeb1baef56a1aa49db4d43fb3160d8a2832f39 (diff) | |
download | systrunk-cd120958926681c8f2a870f2b0a480e056868a15.tar.gz systrunk-cd120958926681c8f2a870f2b0a480e056868a15.zip |
Fix commit to new branch bug
Squeltched "X not a revision" message and now printing "Creating new
branch X" instead.
Diffstat (limited to 'commit.sh')
-rw-r--r-- | commit.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -67,7 +67,8 @@ function systr_commit exit 1 fi - branchcommit=$(systr_repo_resolve_reference "$branch") || branchcommit="$BASE" + branchcommit=$(systr_repo_resolve_reference "$branch" 2>/dev/null) || branchcommit="$BASE" + systr_repo_resolve_reference "$branch" >/dev/null 2>&1 || echo "Creating new branch $branch" if [[ "$BASE" != "$branchcommit" ]]; then echo "Worktree is out-of-date, won't commit" |