* `-u`/`update-head-ok` unsupported on pull
@ 2015-10-08 17:27 Victor Engmark
2015-10-08 18:13 ` Stefan Beller
0 siblings, 1 reply; 2+ messages in thread
From: Victor Engmark @ 2015-10-08 17:27 UTC (permalink / raw)
To: Git
According to the documentation these options are supported:
$ git help pull | grep -e '--update-head-ok'
-u, --update-head-ok
However:
$ git pull --update-head-ok
error: unknown option `update-head-ok'
Using:
$ git --version
git version 2.6.1
$ pacman --query --info git | grep ^Version
Version : 2.6.1-1
Am I missing something? The manual seems to be for the right version:
$ git help pull | tail -n1 | tr -s ' '
Git 2.6.1 10/06/2015 GIT-PULL(1)
I'm running the system installed Git:
$ type -a git
git is /usr/bin/git
Cheers
Victor
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `-u`/`update-head-ok` unsupported on pull
2015-10-08 17:27 `-u`/`update-head-ok` unsupported on pull Victor Engmark
@ 2015-10-08 18:13 ` Stefan Beller
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Beller @ 2015-10-08 18:13 UTC (permalink / raw)
To: Victor Engmark, Paul Tan; +Cc: Git
+Paul Tan who rewrote git pull in C recently.
The manpage:
-u, --update-head-ok
By default git fetch refuses to update the head which
corresponds to the current branch. This flag disables the check. This
is purely for the internal use for git pull to communicate with
git fetch, and unless you are implementing your own
Porcelain you are not supposed to use it.
I guess we either need to update the manpage to remove that option
then, or add it back in in case somebody actually uses it despite the
warning in the man page?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-08 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 17:27 `-u`/`update-head-ok` unsupported on pull Victor Engmark
2015-10-08 18:13 ` Stefan Beller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).