Skip to content

Commit 2e1099e

Browse files
authored
Merge pull request earwig#31 from botmtl/develop
Fix duplicate detection in case agnostic systems
2 parents 681b173 + fcb36d4 commit 2e1099e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitup/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def add_bookmarks(paths, config_path=None):
6262
config = _load_config_file(config_path)
6363
added, exists = [], []
6464
for path in paths:
65-
path = os.path.abspath(path)
65+
path = os.path.normcase(os.path.abspath(path))
6666
if path in config:
6767
exists.append(path)
6868
else:
@@ -86,7 +86,7 @@ def delete_bookmarks(paths, config_path=None):
8686
deleted, notmarked = [], []
8787
if config:
8888
for path in paths:
89-
path = os.path.abspath(path)
89+
path = os.path.normcase(os.path.abspath(path))
9090
if path in config:
9191
config.remove(path)
9292
deleted.append(path)

0 commit comments

Comments
 (0)