X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=archive-tar.c;h=66fe3e375b545613faba4e051dc41c1acb5d8cee;hb=9840906026be807d0882f96396de3a3cdb9fb43e;hp=33e76576f149d89922deda1de5548be7bc42d0eb;hpb=c80e07d4959591f5addcd48c7d42017b40c25f36;p=git.git diff --git a/archive-tar.c b/archive-tar.c index 33e76576f..66fe3e375 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -167,7 +167,7 @@ static void write_entry(const unsigned char *sha1, struct strbuf *path, } else { if (verbose) fprintf(stderr, "%.*s\n", path->len, path->buf); - if (S_ISDIR(mode) || S_ISDIRLNK(mode)) { + if (S_ISDIR(mode) || S_ISGITLINK(mode)) { *header.typeflag = TYPEFLAG_DIR; mode = (mode | 0777) & ~tar_umask; } else if (S_ISLNK(mode)) { @@ -280,7 +280,7 @@ static int write_tar_entry(const unsigned char *sha1, memcpy(path.buf + baselen, filename, filenamelen); path.len = baselen + filenamelen; path.buf[path.len] = '\0'; - if (S_ISDIR(mode) || S_ISDIRLNK(mode)) { + if (S_ISDIR(mode) || S_ISGITLINK(mode)) { strbuf_append_string(&path, "/"); buffer = NULL; size = 0;