From e8388931a8b6228a9c38897b81b1abe4d31d46ab Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 28 Aug 2017 23:15:32 -0400 Subject: Fix bug in commit op If we're making the initial commit, then there isn't any --link-dest to fall back on. --- commit.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/commit.sh b/commit.sh index ff346ff..f06124c 100644 --- a/commit.sh +++ b/commit.sh @@ -63,7 +63,13 @@ function systr_commit commit=$(systr_repo_create_commit) systr_record_commit_mesg "$commit" echo "Sending files..." - systr_rsync_normal . "$path/revs/$commit" "../$branchcommit" + + if [[ "$branchcommit" != "NULL" ]]; then + systr_rsync_normal . "$path/revs/$commit" "../$branchcommit" + else + systr_rsync_normal . "$path/revs/$commit" + fi + systr_repo_finish_commit "$commit" "$branchcommit" echo "$commit" >.systr/BASE -- cgit v1.2.3