summaryrefslogtreecommitdiffstats
path: root/commit.sh
diff options
context:
space:
mode:
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