summaryrefslogtreecommitdiffstats
path: root/commit.sh
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-08-28 23:15:32 -0400
committerMalf Furious <m@lfurio.us>2017-08-28 23:15:32 -0400
commite8388931a8b6228a9c38897b81b1abe4d31d46ab (patch)
treebbd65b9c3cd2a947f00159119c1cae58220e9647 /commit.sh
parent335bc3e9b2af9ac8ffc6d6e87e2f716054f5e542 (diff)
downloadsystrunk-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.
Diffstat (limited to 'commit.sh')
-rw-r--r--commit.sh8
1 files changed, 7 insertions, 1 deletions
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