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