On Thu, 2013-04-11 at 10:37 -0700, Junio C Hamano wrote:
Carlos Martín Nieto c...@elego.de writes:
I can't quite decide whether the behaviour of 'git pull' with no
upstream configured but a default remote with no fetch refspecs
merging the remote's HEAD is a feature, a bug or something in
Carlos Martín Nieto c...@elego.de writes:
On Thu, 2013-04-11 at 10:37 -0700, Junio C Hamano wrote:
+ fetch=$(git config --get-all remote.$use_remote.fetch)
+ if [ -z $fetch ]; then
+ return
+ fi
Hmm, it is probably correct to punt on this case, but it defeats
large part
A 'git pull' without specifying a remote is asked to take the current
branch's upstream as the branch to merge from. This cannot work
without an upstream configuration nor with HEAD detached, but we only
check for this after fetching.
Perform the check beforehand, as we already know whether we
Carlos Martín Nieto c...@elego.de writes:
I can't quite decide whether the behaviour of 'git pull' with no
upstream configured but a default remote with no fetch refspecs
merging the remote's HEAD is a feature, a bug or something in between,
but it's used by t7409 so maybe someone else is
4 matches
Mail list logo