diff options
author | Junio C Hamano <junkio@cox.net> | 2006-08-10 14:17:49 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-10 14:17:49 -0700 |
commit | 44e1d764d0d3123a614377e10655b4348cf57771 (patch) | |
tree | 70154ab1c6ce2a4e8756770132de1b05552252c8 /index-pack.c | |
parent | Merge branch 'master' into mk/rename (diff) | |
parent | git-verify-pack: no need to count errors (diff) | |
download | tgif-44e1d764d0d3123a614377e10655b4348cf57771.tar.xz |
Merge branch 'master' into mk/rename
* master:
git-verify-pack: no need to count errors
git-verify-pack: buffer overrun paranoia
git-verify-pack: free pack after use and a cleanup
git-verify-pack: get rid of while loop
git-verify-pack: insist on .idx extension
git-verify-pack: more careful path handling
git-verify-pack: show usage when no pack was specified
Add has_extension()
builtin-apply: remove unused increment
Fix git-diff A...B
combine-diff: use color
git-apply: applying a patch to make a symlink shorter.
allow diff.renamelimit to be set regardless of -M/-C
make --find-copies-harder imply -C
find_unique_abbrev() with len=0 should not abbreviate
check return value from diff_setup_done()
Fix tutorial-2.html
Documentation: git-status takes the same options as git-commit
Update git-init-db(1) and documentation of core.sharedRepository
Diffstat (limited to 'index-pack.c')
-rw-r--r-- | index-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index-pack.c b/index-pack.c index b39953dc69..a91e39ecd6 100644 --- a/index-pack.c +++ b/index-pack.c @@ -447,7 +447,7 @@ int main(int argc, char **argv) usage(index_pack_usage); if (!index_name) { int len = strlen(pack_name); - if (len < 5 || strcmp(pack_name + len - 5, ".pack")) + if (!has_extension(pack_name, len, ".pack")) die("packfile name '%s' does not end with '.pack'", pack_name); index_name_buf = xmalloc(len); |