summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-25 12:48:44 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-25 12:48:44 +0200
commitc2418f461374a618504c261a4c71cdb01bab9f68 (patch)
treebd608906dc1244c19de052166ee6931abb2f9c98 /src/remote.c
parentdaacf96d101b9d2100a5028090b5af5249d8893d (diff)
downloadlibgit2-cmn/rename-unspecified.tar.gz
Rename FALLBACK to UNSPECIFIEDcmn/rename-unspecified
Fallback describes the mechanism, while unspecified explains what the user is thinking.
Diffstat (limited to 'src/remote.c')
-rw-r--r--src/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c
index 7c2d99937..4dbcb3b1a 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -985,7 +985,7 @@ int git_remote_fetch(
if (opts && opts->prune == GIT_FETCH_PRUNE)
prune = true;
- else if (opts && opts->prune == GIT_FETCH_PRUNE_FALLBACK && remote->prune_refs)
+ else if (opts && opts->prune == GIT_FETCH_PRUNE_UNSPECIFIED && remote->prune_refs)
prune = true;
else if (opts && opts->prune == GIT_FETCH_NO_PRUNE)
prune = false;
@@ -1539,7 +1539,7 @@ int git_remote_update_tips(
if ((error = ls_to_vector(&refs, remote)) < 0)
goto out;
- if (download_tags == GIT_REMOTE_DOWNLOAD_TAGS_FALLBACK)
+ if (download_tags == GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED)
tagopt = remote->download_tags;
else
tagopt = download_tags;