summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2015-07-15 16:14:43 -0700
committerJacob Keller <jacob.e.keller@intel.com>2015-07-15 16:14:43 -0700
commit0f7dc44714e8d823e957004f7d9868357c22a326 (patch)
treeb1175bb9e312f0e52cfe59d32597a9c2c00cd4fe
parentca15664fa8112dc763c8ff1bd63bb7ea2fa412c9 (diff)
downloadaiaiai-0f7dc44714e8d823e957004f7d9868357c22a326.tar.gz
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 <jacob.e.keller@intel.com>
-rwxr-xr-xemail/systemd/aiaiai-project-update9
1 files changed, 6 insertions, 3 deletions
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