diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-03-08 21:29:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-08 21:29:56 -0800 |
commit | 175f5595511b047a320e5c6163c642ac1fc34681 (patch) | |
tree | f66169a0750929b474716969b2ba5b7a885a0ebc /setup.c | |
parent | 0ae496ccd85e121c01bddfdfc1a68aced04f79ff (diff) | |
parent | 5b7570cfb41c34ce585ede3fc1e45fa48febbd8f (diff) | |
download | git-175f5595511b047a320e5c6163c642ac1fc34681.tar.gz git-175f5595511b047a320e5c6163c642ac1fc34681.tar.xz |
Merge branch 'dp/clean-fix'
* dp/clean-fix:
git-clean: add tests for relative path
git-clean: correct printing relative path
Make private quote_path() in wt-status.c available as quote_path_relative()
Revert part of d089eba (setup: sanitize absolute and funny paths in get_pathspec())
Revert part of 1abf095 (git-add: adjust to the get_pathspec() changes)
Revert part of 744dacd (builtin-mv: minimum fix to avoid losing files)
get_pathspec(): die when an out-of-tree path is given
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -202,6 +202,8 @@ const char **get_pathspec(const char *prefix, const char **pathspec) const char *p = prefix_path(prefix, prefixlen, *src); if (p) *(dst++) = p; + else + exit(128); /* error message already given */ src++; } *dst = NULL; |