Dulwich.io dulwich / ed40373
Expand ~ in global exclude path. Jelmer Vernooij 9 months ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1111 (Jelmer Vernooij)
1212
1313 * Cleanup new directory if clone fails. (Jelmer Vernooij, #733)
14
15 * Expand "~" in global exclude path. (Jelmer Vernooij)
1416
1517 0.19.13 2019-08-19
1618
270270 except KeyError:
271271 pass
272272
273 xdg_config_home = os.environ.get(
274 "XDG_CONFIG_HOME", os.path.expanduser("~/.config/"),
275 )
273 xdg_config_home = os.environ.get("XDG_CONFIG_HOME", "~/.config/")
276274 return os.path.join(xdg_config_home, 'git', 'ignore')
277275
278276
365363 os.path.join(repo.controldir(), 'info', 'exclude'),
366364 default_user_ignore_filter_path(repo.get_config_stack())]:
367365 try:
368 global_filters.append(IgnoreFilter.from_path(p))
366 global_filters.append(
367 IgnoreFilter.from_path(os.path.expanduser(p)))
369368 except IOError:
370369 pass
371370 config = repo.get_config_stack()