Skip to content

Commit 3f5ac85

Browse files
committed
Stop tar from prepending dir to symlink targets
1 parent e341c0a commit 3f5ac85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/extras/git/git-functions

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ git-tarball-create() {
4343
# Use git to list files for inclusion in the tarball
4444
if ! git-ls-noticed "$gitinclude_file" \
4545
| tar \
46-
--transform "s,^,${release}/," \
47-
--transform 's,${release}/\([^/]*\) -> \(.*\),\1 -> \2,' \
46+
--transform "flags=r;s,^,${release}/," \
4847
-czf "${tarball}" -T -
4948
then
5049
echo "Error: Failed to create tarball." >&2

0 commit comments

Comments
 (0)