We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c66cd3 commit 1c7e2d2Copy full SHA for 1c7e2d2
git-sh-setup.sh
@@ -330,8 +330,7 @@ esac
330
331
# Make sure we are in a valid repository of a vintage we understand,
332
# if we require to be in a git repository.
333
-if test -z "$NONGIT_OK"
334
-then
+git_dir_init () {
335
GIT_DIR=$(git rev-parse --git-dir) || exit
336
if [ -z "$SUBDIRECTORY_OK" ]
337
then
@@ -346,6 +345,11 @@ then
346
345
exit 1
347
}
348
: ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
+}
349
+
350
+if test -z "$NONGIT_OK"
351
+then
352
+ git_dir_init
353
fi
354
355
peel_committish () {
0 commit comments