diff options
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" |