mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'jc/xsha1' into next
* jc/xsha1: get_sha1() - fix infinite loop on nonexistent stage.
This commit is contained in:
commit
7dd0d0bf52
1 changed files with 1 additions and 0 deletions
|
@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1)
|
||||||
memcpy(sha1, ce->sha1, 20);
|
memcpy(sha1, ce->sha1, 20);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
pos++;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue