threads / discuss / 18129

Strange push/clone errors

Subject: Strange push/clone errors

## tl;dr

3 messages between Mar 4, 2009 and Mar 4, 2009.

replies: 2people: 2as markdown or json

Tim Visher· Mar 4, 2009, 14:01 UTC · lore
Hello Everyone,

I'm trying to maintain an offline copy of the Git repo for our Sandbox environment at work and I just came across and oddity in the behavior I'd expect.

I have a repo on an Internet enabled machine that is a direct clone of the kernel.org version.

    $ git show remote origin
    * remote origin
      URL: http://www.kernel.org/pub/scm/git/git.git
      Remote branch merged with 'git pull' while on branch master
        master
      Tracked remote branches
        html
        maint
        man
        master
        next
        pu
        todo

I then have a repo on a thumb drive that's initially a `clone --bare` of the repo on the Internet enabled machine. I added that as a remote on the previously mentioned repo.

    $ git remote show sandbox
    * remote sandbox
      URL: /cygdrive/f/Documents/git.git/
      Tracked remote branch
        master
When I do a `git push sandbox master` I get the following
    $ git push sandbox master
    Everything up-to-date

The problem is here. Now that I have a supposedly up to date copy on my thumb drive, I'd like to be able to push it out to a central server on our Sandbox network. However, when I do a git clone, tags are missing.

    $ git clone /cygdrive/f/Documents/git.git/
    Initialized empty Git repository in /home/tvishe01/Desktop/git/.git/
    Checking out files: 100% (1589/1589), done.
    $ cd git/
    $ git tag
    ...
    v1.6.1.3
    v1.6.2-rc0
    v1.6.2-rc1
Doing the same thing in the repo connected to kernel.org I get:
    $ git tag
    v1.6.1.3
    v1.6.2
    v1.6.2-rc0
    v1.6.2-rc1
    v1.6.2-rc2

As you can see, v1.6.2 and v1.6.2-rc2 are missing from the repo that I'm pushing to on my thumb drive, despite it claiming it's up to date.

What am I doing wrong?
Thanks in advance!
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Nicolas Sebrecht· Mar 4, 2009, 14:39 UTC · re: Tim Visher · lore

Re: Strange push/clone errors

On Wed, Mar 04, 2009 at 09:01:51AM -0500, Tim Visher wrote:
> As you can see, v1.6.2 and v1.6.2-rc2 are missing from the repo that
> I'm pushing to on my thumb drive, despite it claiming it's up to date.
> 
> What am I doing wrong?

You need to push the tags using the --tags option of git-push (when pushing to your sandbox repository).

-- 
Nicolas Sebrecht
Tim Visher· Mar 4, 2009, 17:37 UTC · re: Nicolas Sebrecht · lore

Re: Strange push/clone errors

On Wed, Mar 4, 2009 at 9:39 AM, Nicolas Sebrecht <nicolas.s-dev@laposte.net> wrote:

Show 10 quoted lines
>
> On Wed, Mar 04, 2009 at 09:01:51AM -0500, Tim Visher wrote:
>
>> As you can see, v1.6.2 and v1.6.2-rc2 are missing from the repo that
>> I'm pushing to on my thumb drive, despite it claiming it's up to date.
>>
>> What am I doing wrong?
>
> You need to push the tags using the --tags option of git-push (when
> pushing to your sandbox repository).

Thank you, Nicolas! I actually discovered the `--mirror` option. Since that's basically what I'm trying to do, that's what I ended up going with. It appears to be working.

-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

← back to recent threads