diff options
author | Malf Furious <m@lfurio.us> | 2017-08-28 23:15:32 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-08-28 23:15:32 -0400 |
commit | e8388931a8b6228a9c38897b81b1abe4d31d46ab (patch) | |
tree | bbd65b9c3cd2a947f00159119c1cae58220e9647 | |
parent | 335bc3e9b2af9ac8ffc6d6e87e2f716054f5e542 (diff) | |
download | systrunk-e8388931a8b6228a9c38897b81b1abe4d31d46ab.tar.gz systrunk-e8388931a8b6228a9c38897b81b1abe4d31d46ab.zip |
Fix bug in commit op
If we're making the initial commit, then there isn't any --link-dest to
fall back on.
-rw-r--r-- | commit.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |