Skip to content

Commit 3588921

Browse files
committed
.git/git_sym changed to .git/git-sym-dir
1 parent db85ac6 commit 3588921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-sym

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_GIT_SYM_LINK():
8888
# Re-create, in case of 'git clean -x'.
8989
redo_GIT_SYM_LINK(GIT_SYM_LINK)
9090
if not is_in_gitignore(os.path.relpath(GIT_SYM_LINK, start=os.getcwd())):
91-
cmd = "echo '/.git-sym' >| %s/info/exclude" %(
91+
cmd = "echo '/.git-sym' >> %s/info/exclude" %(
9292
GIT_DIR)
9393
shell(cmd)
9494
return GIT_SYM_LINK
@@ -136,7 +136,7 @@ def global_setup():
136136
GIT_SYM_CACHE_DIR = get_GIT_SYM_CACHE_DIR()
137137
GIT_ROOT_DIR = get_GIT_ROOT_DIR()
138138
GIT_DIR = os.path.abspath(get_GIT_DIR())
139-
GIT_SYM_DIR = os.path.join(GIT_DIR, 'git_sym')
139+
GIT_SYM_DIR = os.path.join(GIT_DIR, 'git-sym-dir')
140140
debug("GIT_SYM_DIR=%r" %GIT_SYM_DIR)
141141
debug("GIT_SYM_CACHE_DIR=%r" %GIT_SYM_CACHE_DIR)
142142
debug("GIT_DIR=%r" %GIT_DIR)
@@ -438,7 +438,7 @@ def parse_args():
438438
parser_fix.add_argument('symlinks', nargs='*',
439439
help='If not given, walk through tree to find relevant symlinks, but with respect to OLD_LINK, not LINK.')
440440
parser_fix.add_argument('--old-link',
441-
default=os.path.join(GIT_ROOT_DIR, '.git', 'git_sym'),
441+
default=os.path.join(GIT_ROOT_DIR, '.git', 'git-sym-dir'),
442442
help='[default=%(default)s]')
443443

444444
parser_clean = subs.add_parser('clean',

0 commit comments

Comments
 (0)