# Strange push/clone errors

3 messages from 2009-03-04 to 2009-03-04. Participants: Tim Visher, Nicolas Sebrecht.
Thread: https://gitlist.dev/t/18129

## Tim Visher, 2009-03-04 14:01

Subject: Strange push/clone errors
Message-ID: <c115fd3c0903040601xbfce200q78c53aeee0b44f2c@mail.gmail.com>
URL: https://gitlist.dev/e/c115fd3c0903040601xbfce200q78c53aeee0b44f2c%40mail.gmail.com

```
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, 2009-03-04 14:39

Subject: Re: Strange push/clone errors
Message-ID: <20090304143938.GB12901@vidovic>
URL: https://gitlist.dev/e/20090304143938.GB12901%40vidovic
In-Reply-To: <c115fd3c0903040601xbfce200q78c53aeee0b44f2c@mail.gmail.com>

```

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, 2009-03-04 17:37

Subject: Re: Strange push/clone errors
Message-ID: <c115fd3c0903040937l3139ef2ey854cb8c93131384b@mail.gmail.com>
URL: https://gitlist.dev/e/c115fd3c0903040937l3139ef2ey854cb8c93131384b%40mail.gmail.com
In-Reply-To: <20090304143938.GB12901@vidovic>

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

```
