* [PATCH] Check if pack directory exists prior to descending into it
@ 2006-08-29 9:12 Matthias Kestenholz
2006-08-29 9:17 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Kestenholz @ 2006-08-29 9:12 UTC (permalink / raw)
To: junkio, git
This fixes the following warning:
git-repack: line 42: cd: .git/objects/pack: No such file or directory
This happens only, when git-repack -a is run without any packs in the
repository.
Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
---
git-repack.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-repack.sh b/git-repack.sh
index 9da92fb..584a732 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -38,7 +38,7 @@ case ",$all_into_one," in
pack_objects=
# Redundancy check in all-into-one case is trivial.
- existing=`cd "$PACKDIR" && \
+ existing=`test -d "$PACKDIR" && cd "$PACKDIR" && \
find . -type f \( -name '*.pack' -o -name '*.idx' \) -print`
;;
esac
--
1.4.2.g2f76
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Check if pack directory exists prior to descending into it
2006-08-29 9:12 [PATCH] Check if pack directory exists prior to descending into it Matthias Kestenholz
@ 2006-08-29 9:17 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-08-29 9:17 UTC (permalink / raw)
To: Matthias Kestenholz; +Cc: git
Makes sense. Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-29 9:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-29 9:12 [PATCH] Check if pack directory exists prior to descending into it Matthias Kestenholz
2006-08-29 9:17 ` Junio C Hamano
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).