From fcb36d4b6245c008f6657396ad765c2b172c8514 Mon Sep 17 00:00:00 2001 From: botmtl Date: Sun, 3 Jul 2016 12:13:20 -0400 Subject: [PATCH] fix duplicates in case agnostic systems (osx and linux are unnafected) --- gitup/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitup/config.py b/gitup/config.py index 2bd8cbe..b859f3f 100644 --- a/gitup/config.py +++ b/gitup/config.py @@ -59,7 +59,7 @@ def add_bookmarks(paths, config_path=None): config = _load_config_file(config_path) added, exists = [], [] for path in paths: - path = os.path.abspath(path) + path = os.path.normcase(os.path.abspath(path)) if path in config: exists.append(path) else: @@ -83,7 +83,7 @@ def delete_bookmarks(paths, config_path=None): deleted, notmarked = [], [] if config: for path in paths: - path = os.path.abspath(path) + path = os.path.normcase(os.path.abspath(path)) if path in config: config.remove(path) deleted.append(path)