summaryrefslogtreecommitdiff
path: root/git-merge-one-file.sh
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-05-02 00:26:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-02 04:59:53 (GMT)
commit7882fa220c1f86e3f9707270e2e94d54149394ed (patch)
tree62db093267fb23bf9d5178880123a90480b97553 /git-merge-one-file.sh
parent23ec4c51d53f6976bdb54e92487d378f9abd1ed3 (diff)
downloadgit-7882fa220c1f86e3f9707270e2e94d54149394ed.zip
git-7882fa220c1f86e3f9707270e2e94d54149394ed.tar.gz
git-7882fa220c1f86e3f9707270e2e94d54149394ed.tar.bz2
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-merge-one-file.sh')
-rwxr-xr-xgit-merge-one-file.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-merge-one-file.sh b/git-merge-one-file.sh
index 9879c59..f6d9852 100755
--- a/git-merge-one-file.sh
+++ b/git-merge-one-file.sh
@@ -120,7 +120,7 @@ case "${1:-.}${2:-.}${3:-.}" in
case "$1" in
'')
echo "Added $4 in both, but differently."
- orig=$(git unpack-file e69de29bb2d1d6434b8b29ae775ad8c2e48c5391)
+ orig=$(git unpack-file $(git hash-object /dev/null))
;;
*)
echo "Auto-merging $4"