From: Jacob Keller Date: Wed, 15 Jul 2015 23:14:43 +0000 (-0700) Subject: aiaiai-project-update: ignore repos without a path X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0f7dc44714e8d823e957004f7d9868357c22a326;p=users%2Fdedekind%2Faiaiai.git aiaiai-project-update: ignore repos without a path If the repository isn't yet checked out, don't completely fail. Future TODO is to try and figure out a way to automatically clone the repository. However, currently repositories are stored per-project and multiple URLs could end up being used as remotes, which makes it difficult to determine the right way to clone the repository. In addition, reverse-lookup of project from path is not really easy to do. Signed-off-by: Jacob Keller --- diff --git a/email/systemd/aiaiai-project-update b/email/systemd/aiaiai-project-update index e8b369d..b65b3df 100755 --- a/email/systemd/aiaiai-project-update +++ b/email/systemd/aiaiai-project-update @@ -87,7 +87,10 @@ parse_config "$cfgfile" find_unique_repositories "$cfgfile" | \ while read -r repo; do - verbose "Updating $repo" - - git --git-dir="$(git_dir "$repo")" remote update + if [ -d "$repo" ]; then + verbose "Updating $repo" + git --git-dir="$(git_dir "$repo")" remote update + else + verbose "No clone for $repo" + fi done