summaryrefslogtreecommitdiff
path: root/scripts/commit.rc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/commit.rc')
-rw-r--r--scripts/commit.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/commit.rc b/scripts/commit.rc
index feb0f4ac..e7b5d468 100644
--- a/scripts/commit.rc
+++ b/scripts/commit.rc
@@ -5,9 +5,11 @@ flag e +
repo=$1
branch=$2
tag=$3
+out=$4
fn checkstatus {}
+wd=`{pwd}
cd $repo
if([ -f refs/heads/$branch ]) parent=(-p $branch)
@@ -16,3 +18,4 @@ if not parent=()
message='oasis built by '`{id -un}
commit=`{echo $message | git commit-tree $tag $parent} ; checkstatus
git update-ref refs/heads/$branch $commit
+ln -f refs/heads/$branch $wd/$out