git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-repack: clear out tmp packfiles from $PACKDIR instead of cwd
@ 2006-09-04  5:42 Martin Langhoff
  2006-09-04  5:48 ` Martin Langhoff
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Langhoff @ 2006-09-04  5:42 UTC (permalink / raw)
  To: git, junkio; +Cc: Martin Langhoff

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-04 12:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04  5:42 [PATCH] git-repack: clear out tmp packfiles from $PACKDIR instead of cwd Martin Langhoff
2006-09-04  5:48 ` Martin Langhoff
2006-09-04  8:17   ` Jakub Narebski
2006-09-04 12:16     ` Martin Langhoff

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).