diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-20 15:22:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-20 15:22:41 -0700 |
commit | 3b7c49e9a3bbb2c2667465835fe73d623f63601e (patch) | |
tree | ec3f09d82a1474d9ae90e43e6f0ec30ab234b5e6 /test-path-utils.c | |
parent | ce555f38426e212ced5f2445bc6df1351af21cab (diff) | |
parent | b2a7123b997f950e9785a5e7df64c3104270fef3 (diff) | |
download | git-3b7c49e9a3bbb2c2667465835fe73d623f63601e.tar.gz git-3b7c49e9a3bbb2c2667465835fe73d623f63601e.tar.xz |
Merge branch 'rd/test-path-utils' into maint
The normalize_ceiling_entry() function does not muck with the end
of the path it accepts, and the real world callers do rely on that,
but a test insisted that the function drops a trailing slash.
* rd/test-path-utils:
test-path-utils.c: remove incorrect assumption
Diffstat (limited to 'test-path-utils.c')
-rw-r--r-- | test-path-utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test-path-utils.c b/test-path-utils.c index 3dd3744a5..c67bf65b3 100644 --- a/test-path-utils.c +++ b/test-path-utils.c @@ -21,8 +21,6 @@ static int normalize_ceiling_entry(struct string_list_item *item, void *unused) if (normalize_path_copy(buf, ceil) < 0) die("Path \"%s\" could not be normalized", ceil); len = strlen(buf); - if (len > 1 && buf[len-1] == '/') - die("Normalized path \"%s\" ended with slash", buf); free(item->string); item->string = xstrdup(buf); return 1; |