File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/ bin/env bash
1
+ #! /bin/sh
2
2
# Copyright (c) 2012 Felipe Contreras
3
3
4
4
alias=$1
23
23
testgitmarks=" $dir /testgit.marks"
24
24
test -e " $gitmarks " || > " $gitmarks "
25
25
test -e " $testgitmarks " || > " $testgitmarks "
26
- testgitmarks_args=( " --" {import,export}" -marks=$testgitmarks " )
27
26
fi
28
27
29
28
while read line
69
68
fi
70
69
71
70
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 |
73
75
sed -e " s#refs/heads/#${prefix} /heads/#g"
74
76
echo " done"
75
77
;;
88
90
89
91
before=$( git for-each-ref --format=' %(refname) %(objectname) ' )
90
92
91
- git fast-import " ${testgitmarks_args[@]} " --quiet
93
+ git fast-import \
94
+ ${testgitmarks: +" --import-marks=$testgitmarks " } \
95
+ ${testgitmarks: +" --export-marks=$testgitmarks " } \
96
+ --quiet
92
97
93
98
# figure out which refs were updated
94
99
git for-each-ref --format=' %(refname) %(objectname)' |
You can’t perform that action at this time.
0 commit comments