]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai-project-update: ignore repos without a path
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 15 Jul 2015 23:14:43 +0000 (16:14 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 15 Jul 2015 23:14:43 +0000 (16:14 -0700)
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>
email/systemd/aiaiai-project-update

index e8b369d3fedaeaf23c1be33f07c417c8826a6b3a..b65b3dfa1bcbf56b5315cfea029df522547e8fc9 100755 (executable)
@@ -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