File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /usr/ bin/env bash
1+ #! /bin/sh
22# Copyright (c) 2012 Felipe Contreras
33
44alias=$1
2323 testgitmarks=" $dir /testgit.marks"
2424 test -e " $gitmarks " || > " $gitmarks "
2525 test -e " $testgitmarks " || > " $testgitmarks "
26- testgitmarks_args=( " --" {import,export}" -marks=$testgitmarks " )
2726fi
2827
2928while read line
6968 fi
7069
7170 echo " feature done"
72- git fast-export " ${testgitmarks_args[@]} " $refs |
71+ git fast-export \
72+ ${testgitmarks: +" --import-marks=$testgitmarks " } \
73+ ${testgitmarks: +" --export-marks=$testgitmarks " } \
74+ $refs |
7375 sed -e " s#refs/heads/#${prefix} /heads/#g"
7476 echo " done"
7577 ;;
8890
8991 before=$( git for-each-ref --format=' %(refname) %(objectname) ' )
9092
91- git fast-import " ${testgitmarks_args[@]} " --quiet
93+ git fast-import \
94+ ${testgitmarks: +" --import-marks=$testgitmarks " } \
95+ ${testgitmarks: +" --export-marks=$testgitmarks " } \
96+ --quiet
9297
9398 # figure out which refs were updated
9499 git for-each-ref --format=' %(refname) %(objectname)' |
You can’t perform that action at this time.
0 commit comments