{"thread":{"id":"5425","subject":"[PATCH] Check if pack directory exists prior to descending into it","startedAt":"2006-08-29T09:12:14Z","lastAt":"2006-08-29T09:17:28Z","messageCount":2,"participants":["Matthias Kestenholz","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"26083","messageId":"20060829091214.GA10155@spinlock.ch","threadId":"5425","inReplyTo":null,"subject":"[PATCH] Check if pack directory exists prior to descending into it","fromName":"Matthias Kestenholz","fromEmail":"matthias@spinlock.ch","sentAt":"2006-08-29T09:12:14Z","receivedAt":"2006-08-29T09:12:14Z","isPatch":true,"sender":{"key":"matthias@spinlock.ch","avatar":"https://gravatar.com/avatar/bc18f396e70163d09ab458a341b1decb7e8b6ee3aa2c0c954ec20162e67c4d46?d=mp&s=160"},"body":"This fixes the following warning:\n\ngit-repack: line 42: cd: .git/objects/pack: No such file or directory\n\nThis happens only, when git-repack -a is run without any packs in the\nrepository.\n\nSigned-off-by: Matthias Kestenholz <matthias@spinlock.ch>\n---\n git-repack.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-repack.sh b/git-repack.sh\nindex 9da92fb..584a732 100755\n--- a/git-repack.sh\n+++ b/git-repack.sh\n@@ -38,7 +38,7 @@ case \",$all_into_one,\" in\n \tpack_objects=\n \n \t# Redundancy check in all-into-one case is trivial.\n-\texisting=`cd \"$PACKDIR\" && \\\n+\texisting=`test -d \"$PACKDIR\" && cd \"$PACKDIR\" && \\\n \t    find . -type f \\( -name '*.pack' -o -name '*.idx' \\) -print`\n \t;;\n esac\n-- \n1.4.2.g2f76\n"},{"id":"26084","messageId":"7v1wqzoq8n.fsf@assigned-by-dhcp.cox.net","threadId":"5425","inReplyTo":"20060829091214.GA10155@spinlock.ch","subject":"Re: [PATCH] Check if pack directory exists prior to descending into it","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-08-29T09:17:28Z","receivedAt":"2006-08-29T09:17:28Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Makes sense.  Thanks.\n"}]}