diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-10-06 08:56:07 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-06 08:56:07 -0700 |
commit | 276328ffb87cefdc515bee5f09916aea6e0244ed (patch) | |
tree | 162b276adac033e8a41266071e046f0f4cf4cd6d /setup.c | |
parent | 048f2762007d022defceb6850a44bc1bd5ccebf7 (diff) | |
parent | e261cf94848d31868c21fb11cade51c30dfcdbe7 (diff) | |
download | git-276328ffb87cefdc515bee5f09916aea6e0244ed.tar.gz git-276328ffb87cefdc515bee5f09916aea6e0244ed.tar.xz |
Merge branch 'maint'
* maint:
Update release notes for 1.6.0.3
Teach rebase -i to honor pre-rebase hook
docs: describe pre-rebase hook
do not segfault if make_cache_entry failed
make prefix_path() never return NULL
fix bogus "diff --git" header from "diff --no-index"
Fix fetch/clone --quiet when stdout is connected
builtin-blame: Fix blame -C -C with submodules.
bash: remove fetch, push, pull dashed form leftovers
Conflicts:
diff.c
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -110,9 +110,7 @@ const char *prefix_path(const char *prefix, int len, const char *path) if (strncmp(sanitized, work_tree, len) || (sanitized[len] != '\0' && sanitized[len] != '/')) { error_out: - error("'%s' is outside repository", orig); - free(sanitized); - return NULL; + die("'%s' is outside repository", orig); } if (sanitized[len] == '/') len++; @@ -216,10 +214,7 @@ const char **get_pathspec(const char *prefix, const char **pathspec) prefixlen = prefix ? strlen(prefix) : 0; while (*src) { const char *p = prefix_path(prefix, prefixlen, *src); - if (p) - *(dst++) = p; - else - exit(128); /* error message already given */ + *(dst++) = p; src++; } *dst = NULL; |