From 2791418b9f049373113f7796a2ded13bfe5b9fd9 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 5 Jun 2015 20:04:25 -0400 Subject: [PATCH] Better solution to previous commit. --- gitup/update.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitup/update.py b/gitup/update.py index 456f277..15bedd4 100644 --- a/gitup/update.py +++ b/gitup/update.py @@ -95,8 +95,7 @@ def _fetch_remotes(remotes): for remote in remotes: print(INDENT2, "Fetching", BOLD + remote.name, end="") - config_attr = "remote.{0}.fetch".format(remote.name) - if not _read_config(remote.repo, config_attr): + if not remote.config_reader.has_option("fetch"): print(":", YELLOW + "skipped:", "no configured refspec.") continue