summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-10-26 16:21:31 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-11-01 22:47:06 +0100
commit2f03050f4fc50746faef46be498aa0af9697fee2 (patch)
treec13c6e468e35dcbaef6cfb692a92c6b127b52c3a /include/git2/remote.h
parent567649f2ada60e5c3009cc985af238b452b14a81 (diff)
downloadlibgit2-2f03050f4fc50746faef46be498aa0af9697fee2.tar.gz
remote: download HEAD when no refspecs are given
The correct behaviour when a remote has no refspecs (e.g. a URL from the command-line) is to download the remote's HEAD. Let's do that. This fixes #1261.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index b9cf86ef1..15a92f3df 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -54,7 +54,7 @@ GIT_EXTERN(int) git_remote_create(
*
* @param out pointer to the new remote object
* @param repo the associated repository
- * @param fetch the fetch refspec to use for this remote. May be NULL for defaults.
+ * @param fetch the fetch refspec to use for this remote.
* @param url the remote repository's URL
* @return 0 or an error code
*/