Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-sh-setup.sh: use rev-parse --git-path to get $GIT_DIR/objects
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 30 Nov 2014 08:24:37 +0000
(15:24 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Dec 2014 19:00:13 +0000
(11:00 -0800)
If $GIT_COMMON_DIR is set, $GIT_OBJECT_DIRECTORY should be
$GIT_COMMON_DIR/objects, not $GIT_DIR/objects. Just let rev-parse
--git-path handle it.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-sh-setup.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c7b3a3d
)
diff --git
a/git-sh-setup.sh
b/git-sh-setup.sh
index d968760139b0e7b9219a1602a2e646a3ed398136..94a5c6d9572b1115a6304191ba0fd0b7bbce3aea 100644
(file)
--- a/
git-sh-setup.sh
+++ b/
git-sh-setup.sh
@@
-344,7
+344,7
@@
git_dir_init () {
echo >&2 "Unable to determine absolute path of git directory"
exit 1
}
- : ${GIT_OBJECT_DIRECTORY="$
GIT_DIR/objects
"}
+ : ${GIT_OBJECT_DIRECTORY="$
(git rev-parse --git-path objects)
"}
}
if test -z "$NONGIT_OK"