diff options
| author | Michael Forney <mforney@mforney.org> | 2017-02-25 14:46:18 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-02-25 14:50:33 -0800 |
| commit | 6172f9ace700aa6ea5fbf436afd80967daf5e49e (patch) | |
| tree | 54318a74edfe8e7368ad0dfb84dc4d985f39dcf7 /scripts | |
| parent | d785e9083077a7620a7cb9c2efada4dab7112bc0 (diff) | |
scripts/tree.rc: Write index in $outdir
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tree.rc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/tree.rc b/scripts/tree.rc index be115661..c14e87e0 100644 --- a/scripts/tree.rc +++ b/scripts/tree.rc @@ -6,13 +6,17 @@ repo=$1 tag=$2 index=$3 out=$4 +ifs=' +' fn checkstatus {} -GIT_INDEX_FILE=$tag.index { +GIT_INDEX_FILE=`{pwd}^/$out.index { + checkstatus git -C $repo read-tree --empty git -C $repo update-index --index-info <$index tree=`{git -C $repo write-tree} ; checkstatus + rm $out.index } git -C $repo update-ref refs/tags/$tag $tree |
