Check if pack directory exists prior to descending into it
authorMatthias Kestenholz <matthias@spinlock.ch>
Tue, 29 Aug 2006 09:12:14 +0000 (11:12 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 Aug 2006 09:17:15 +0000 (02:17 -0700)
commit9e848013968959bd4de5d407c2ee91cb960c53bb
treeb87fcf3b4bb31637c693fd1113c6882ac6b5b3bb
parenta44465ccd998bcb6fbfb49cb63d5206dce26051a
Check if pack directory exists prior to descending into it

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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-repack.sh