diff options
author | Vicent Marti <vicent@github.com> | 2014-01-23 08:03:29 -0800 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-01-23 08:03:29 -0800 |
commit | ca55fc6356a5edd838ca03b82f3601bd94e8d750 (patch) | |
tree | 07239579fb2ab7f41b8886cce5ff2580afd81ced /src | |
parent | ac8949edb2b1fc286656baac5be367c8c31330ab (diff) | |
parent | 8610487cd321052d156202b7dd213add29fe6b21 (diff) | |
download | libgit2-ca55fc6356a5edd838ca03b82f3601bd94e8d750.tar.gz |
Merge pull request #2074 from linquize/pack-filename-sha1
Drop parsing pack filename SHA1 part
Diffstat (limited to 'src')
-rw-r--r-- | src/pack.c | 5 | ||||
-rw-r--r-- | src/pack.h | 1 |
2 files changed, 0 insertions, 6 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; diff --git a/src/pack.h b/src/pack.h index 28146ab30..58f81e2f0 100644 --- a/src/pack.h +++ b/src/pack.h @@ -88,7 +88,6 @@ struct git_pack_file { int index_version; git_time_t mtime; unsigned pack_local:1, pack_keep:1, has_cache:1; - git_oid sha1; git_oidmap *idx_cache; git_oid **oids; |