From: Martin Langhoff <martin@catalyst.net.nz>
To: git@vger.kernel.org, junkio@cox.net
Cc: Martin Langhoff <martin@catalyst.net.nz>
Subject: [PATCH] git-repack: clear out tmp packfiles from $PACKDIR instead of cwd
Date: Mon, 4 Sep 2006 17:42:16 +1200 [thread overview]
Message-ID: <11573485362686-git-send-email-martin@catalyst.net.nz> (raw)
Temp packfiles should never be created in cwd anyway ;-)
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
---
git-repack.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-repack.sh b/git-repack.sh
index ccc8e43..eee0d72 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -24,8 +24,9 @@ do
shift
done
-rm -f .tmp-pack-*
PACKDIR="$GIT_OBJECT_DIRECTORY/pack"
+mkdir -p "$PACKDIR" || exit
+rm -f "$PACKDIR/.tmp-pack-*"
# There will be more repacking strategies to come...
case ",$all_into_one," in
@@ -43,7 +44,6 @@ case ",$all_into_one," in
;;
esac
-mkdir -p "$PACKDIR" || exit
pack_objects="$pack_objects $local $quiet $no_reuse_delta$extra"
name=$( { git-rev-list --objects --all $rev_list ||
echo "git-rev-list died with exit code $?"
--
1.4.2.gdfe7
--
VGER BF report: U 0.983488
next reply other threads:[~2006-09-04 5:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 5:42 Martin Langhoff [this message]
2006-09-04 5:48 ` [PATCH] git-repack: clear out tmp packfiles from $PACKDIR instead of cwd Martin Langhoff
2006-09-04 8:17 ` Jakub Narebski
2006-09-04 12:16 ` Martin Langhoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11573485362686-git-send-email-martin@catalyst.net.nz \
--to=martin@catalyst.net.nz \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).