Skip to content

Commit 7882fa2

Browse files
bk2204gitster
authored andcommitted
merge-one-file: compute empty blob object ID
This script hard-codes the object ID of the empty blob. To avoid any problems when changing hashes, compute this value by calling git hash-object. Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 23ec4c5 commit 7882fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-merge-one-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ case "${1:-.}${2:-.}${3:-.}" in
120120
case "$1" in
121121
'')
122122
echo "Added $4 in both, but differently."
123-
orig=$(git unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
123+
orig=$(git unpack-file $(git hash-object /dev/null))
124124
;;
125125
*)
126126
echo "Auto-merging $4"

0 commit comments

Comments
 (0)