git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fetch <repo> <branch>:<branch> fetches tags?
@ 2008-01-29  2:33 Brandon Casey
  2008-01-29  2:41 ` Johannes Schindelin
  2008-01-29  2:47 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Brandon Casey @ 2008-01-29  2:33 UTC (permalink / raw)
  To: Git Mailing List


Is this the intended behavior?

I'm pretty sure this was discussed recently on the list.
My understanding was that tags would only be fetched
automatically if a remote tracking branch was configured.

$ cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true


I expect these to fetch tags automatically (and they do):

   git fetch
   git pull
   git fetch <repo>
   git pull <repo>

I expect these to _not_ fetch tags (and they don't):

   git fetch <repo> <branch>
   git pull <repo> <branch>

But, I did not expect these to fetch tags:

   git fetch <repo> <branch>:<branch>
   git pull <repo> <branch>:<branch>


The association I am making here is between manually specifying
the repo and branch implying "don't automatically fetch tags",
and fetch/pull automatically determining the branch (and repo)
implying "automatically fetch tags".

There is nothing automatic about that last form of fetch.

I know there is --no-tags, and I know I can do

   git fetch <repo> <branch>
   git branch <branch> FETCH_HEAD

But neither are what I expected to have to do. So I guess the
colon notation implies remote tracking? I'm not sure I want
the tags by default when I call fetch this way. In this
instance I definitely did not want them.

-brandon

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-29 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29  2:33 fetch <repo> <branch>:<branch> fetches tags? Brandon Casey
2008-01-29  2:41 ` Johannes Schindelin
2008-01-29  3:09   ` Brandon Casey
2008-01-29  2:47 ` Junio C Hamano
2008-01-29  4:19   ` Shawn O. Pearce
2008-01-29  5:26   ` Junio C Hamano
2008-01-29  8:46     ` Brandon Casey
2008-01-29  8:54       ` Junio C Hamano
2008-01-29 17:08         ` Brandon Casey

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).