blob: 870d7ab319fe9c7ae0c4d398118857d51497df73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/rc
flag e +
repo=$1
branch=$2
tag=$3
out=$4
fn checkstatus {}
if(git -C $repo show-ref -q --verify refs/heads/$branch)
parent=(-p $branch)
if not parent=()
message='oasis built by '`{id -un}
commit=`{echo $message | git -C $repo commit-tree $tag $parent} ; checkstatus
git -C $repo update-ref refs/heads/$branch $commit
echo $commit > $out.tmp && mv $out.tmp $out
|