diff options
author | Linquize <linquize@yahoo.com.hk> | 2014-01-23 23:28:28 +0800 |
---|---|---|
committer | Linquize <linquize@yahoo.com.hk> | 2014-01-23 23:28:28 +0800 |
commit | 8610487cd321052d156202b7dd213add29fe6b21 (patch) | |
tree | 6bd99f2377e855141ac773832ce6949d4691736c /src/pack.c | |
parent | b97e55f2f16ea91f2e1c4e4a7e35af9b5260ca78 (diff) | |
download | libgit2-8610487cd321052d156202b7dd213add29fe6b21.tar.gz |
Drop parsing pack filename SHA1 part, no one cares the filename
Diffstat (limited to 'src/pack.c')
-rw-r--r-- | src/pack.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/pack.c b/src/pack.c index 23fcf3530..de038a45c 100644 --- a/src/pack.c +++ b/src/pack.c @@ -997,11 +997,6 @@ int git_packfile_alloc(struct git_pack_file **pack_out, const char *path) return -1; } - /* see if we can parse the sha1 oid in the packfile name */ - if (path_len < 40 || - git_oid_fromstr(&p->sha1, path + path_len - GIT_OID_HEXSZ) < 0) - memset(&p->sha1, 0x0, GIT_OID_RAWSZ); - *pack_out = p; return 0; |