Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mw/symlinks'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 2 May 2014 20:11:02 +0000
(13:11 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 2 May 2014 20:11:03 +0000
(13:11 -0700)
A finishing touch fix to a new change already in 'master'.
* mw/symlinks:
setup: fix windows path buffer over-stepping
setup.c
patch
|
blob
|
history
raw
(from parent 1:
06229a6
)
diff --git
a/setup.c
b/setup.c
index 613e3b3c13b3f09bce07c54dc440d03c0b5beb0c..0a22f8bd1d631fe5f0afe1d84162ca4064a00e4f 100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-29,7
+29,7
@@
static int abspath_part_inside_repo(char *path)
return -1;
wtlen = strlen(work_tree);
len = strlen(path);
- off =
0
;
+ off =
offset_1st_component(path)
;
/* check if work tree is already the prefix */
if (wtlen <= len && !strncmp(path, work_tree, wtlen)) {
@@
-45,7
+45,7
@@
static int abspath_part_inside_repo(char *path)
off = wtlen;
}
path0 = path;
- path += off
set_1st_component(path) + off
;
+ path += off;
/* check each '/'-terminated level */
while (*path) {