Skip to content

Commit d0636d2

Browse files
authored
Merge pull request #808 from drasill/master
git-ignore: support non-default .git directory
2 parents 29f6d0e + 41ebe0e commit d0636d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
: ${GIT_DIR:=.git}
3+
: ${GIT_DIR:=$(git rev-parse --git-dir)}
44

55
function show_contents {
66
local file="${2/#~/$HOME}"

0 commit comments

Comments
 (0)