Browse Source

Don't try to fetch remotes without configured refspecs.

tags/v0.3
Ben Kurtovic 9 years ago
parent
commit
a9e2a1fe8d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      gitup/update.py

+ 6
- 0
gitup/update.py View File

@@ -94,6 +94,12 @@ def _fetch_remotes(remotes):


for remote in remotes: for remote in remotes:
print(INDENT2, "Fetching", BOLD + remote.name, end="") print(INDENT2, "Fetching", BOLD + remote.name, end="")

config_attr = "remote.{0}.fetch".format(remote.name)
if not _read_config(remote.repo, config_attr):
print(":", YELLOW + "skipped:", "no configured refspec.")
continue

try: try:
results = remote.fetch(progress=_ProgressMonitor()) results = remote.fetch(progress=_ProgressMonitor())
except exc.GitCommandError as err: except exc.GitCommandError as err:


Loading…
Cancel
Save