Go to file
Julius Gustavsson 0cb1b3f687 sync: Try fetching a tag as a last resort before giving up
If a tagged commit is not reachable by the fetch refspec configured
for the git (usually refs/heads/*) it will not be downloaded by
'git fetch'.  The tag can however be downloaded with 'git fetch
--tags' or 'git fetch tag <tag>'.

This patch fixes the situation when a tag is not found after a
'git fetch'. Repo will issue 'git fetch tag <tag>' before giving
up completely.

Change-Id: I87796a5e1d51fcf398f346a274b7a069df37599a
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-07-15 16:38:08 -07:00
docs Add a 'smart sync' option to repo sync 2010-04-13 10:20:37 -07:00
hooks Automatically install Gerrit Code Review's commit-msg hook 2010-03-06 19:21:00 -08:00
subcmds rebase: Automatically rebase branch on upstrea 2010-07-15 16:35:31 -07:00
tests Fix error parsing a non-existant configuration file 2009-07-02 16:12:57 -07:00
.gitignore .gitignore: add an entry for repopickles 2009-06-28 15:08:56 -07:00
.project Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
.pydevproject Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
color.py Add -p to repo forall to improve output formatting 2009-04-18 13:49:13 -07:00
command.py Add -p to repo forall to improve output formatting 2009-04-18 13:49:13 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Support GIT_EDITOR='vim -c "set textwidth=80"' 2009-07-02 12:45:47 -07:00
error.py Document any crashes from the user's text editor 2009-06-24 07:15:21 -07:00
git_command.py sync: kill git fetch process before SSH control master process 2010-05-11 18:31:47 -07:00
git_config.py Do not invoke ssh with -p argument when no port has been specified. 2010-06-08 11:08:11 -07:00
git_refs.py Make usage of open safer by setting binary mode and closing fds 2009-04-18 14:48:03 -07:00
git_ssh Automatically use SSH control master support during sync 2009-04-18 16:50:47 -07:00
main.py Refactor Manifest to be XmlManifest 2009-05-29 09:31:28 -07:00
manifest_xml.py Add a 'smart sync' option to repo sync 2010-04-13 10:20:37 -07:00
pager.py Don't start the pager if stdout is a pipe 2009-04-01 07:24:22 -07:00
progress.py Do not emit progress if stderr is not a tty 2010-05-27 16:48:36 -07:00
project.py sync: Try fetching a tag as a last resort before giving up 2010-07-15 16:38:08 -07:00
repo Refactor Manifest to be XmlManifest 2009-05-29 09:31:28 -07:00
SUBMITTING_PATCHES Document how to contribute to the repo project 2009-07-02 13:18:55 -07:00
trace.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00