Skip to content

Commit 8530f3e

Browse files
dschoGit for Windows Build Agent
authored andcommitted
merge-one-file: avoid dashed invocation
The original idea of deprecating invocations of Git subcommands via their dashed form was to be able to ship without having to hard-link each and every builtin to its dashed form. We need to follow this plan ourselves, by patching our very own scripts accordingly. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1c60b76 commit 8530f3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git-merge-one-file.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ case "${1:-.}${2:-.}${3:-.}" in
115115
;;
116116
esac
117117

118-
src1=$(git-unpack-file $2)
119-
src2=$(git-unpack-file $3)
118+
src1=$(git unpack-file $2)
119+
src2=$(git unpack-file $3)
120120
case "$1" in
121121
'')
122122
echo "Added $4 in both, but differently."
123-
orig=$(git-unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
123+
orig=$(git unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
124124
;;
125125
*)
126126
echo "Auto-merging $4"
127-
orig=$(git-unpack-file $1)
127+
orig=$(git unpack-file $1)
128128
;;
129129
esac
130130

0 commit comments

Comments
 (0)