diff options
| author | Michael Forney <mforney@mforney.org> | 2016-04-10 13:31:32 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-04-15 02:10:08 -0700 |
| commit | 94080b6ea885cfc6e23393fb7e94552e37d58c2e (patch) | |
| tree | dd8785d1ac2088c3c1ef08903aa3433eebeedf1b /scripts | |
| parent | 04a54a014f45d3564b29858c631b4578211a49ba (diff) | |
Use git tag file as gittree output
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tree.rc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/tree.rc b/scripts/tree.rc index 8d71ffe2..ed7a81bb 100644 --- a/scripts/tree.rc +++ b/scripts/tree.rc @@ -3,7 +3,7 @@ flag e + repo=$1 -out=$2 +tag=$2 shift 2 ifs=() { oldpwd=`{pwd | head -c -1} } @@ -12,8 +12,4 @@ cd $repo git read-tree --empty cat $oldpwd/$* | git update-index --index-info tree=`{git write-tree} -git update-ref refs/tags/tree $tree - -cd $oldpwd -echo $tree >$out.tmp -mv $out.tmp $out +git update-ref refs/tags/$tag $tree |
