Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
archive-tar: fix minor indentation violation
author
Jeff King
<peff@peff.net>
Thu, 24 Sep 2015 21:03:49 +0000
(17:03 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 25 Sep 2015 17:18:18 +0000
(10:18 -0700)
This looks like a simple omission from
8539070
(archive-tar:
unindent write_tar_entry by one level, 2012-05-03).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d270d7b
)
diff --git
a/archive-tar.c
b/archive-tar.c
index 0d1e6bd7542dd7c76d2f349de0d0238a8d1b55af..b6b30bb577679f3b012cd50038dbed52fb6cd81e 100644
(file)
--- a/
archive-tar.c
+++ b/
archive-tar.c
@@
-233,7
+233,7
@@
static int write_tar_entry(struct archiver_args *args,
size_t rest = pathlen - plen - 1;
if (plen > 0 && rest <= sizeof(header.name)) {
memcpy(header.prefix, path, plen);
-
memcpy(header.name, path + plen + 1, rest);
+ memcpy(header.name, path + plen + 1, rest);
} else {
sprintf(header.name, "%s.data",
sha1_to_hex(sha1));