projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
send-pack --thin: use "thin pack" delta transfer.
[git.git]
/
update-index.c
diff --git
a/update-index.c
b/update-index.c
index
a84a04f
..
afec98d
100644
(file)
--- a/
update-index.c
+++ b/
update-index.c
@@
-367,7
+367,7
@@
static void read_index_info(int line_termination)
if (!tab || tab - ptr < 41)
goto bad_line;
if (!tab || tab - ptr < 41)
goto bad_line;
- if (tab[-2] == ' ' && '
1
' <= tab[-1] && tab[-1] <= '3') {
+ if (tab[-2] == ' ' && '
0
' <= tab[-1] && tab[-1] <= '3') {
stage = tab[-1] - '0';
ptr = tab + 1; /* point at the head of path */
tab = tab - 2; /* point at tail of sha1 */
stage = tab[-1] - '0';
ptr = tab + 1; /* point at the head of path */
tab = tab - 2; /* point at tail of sha1 */