[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] git "pull" from bundle to bare repository
From: |
Greg Chicares |
Subject: |
Re: [lmi] git "pull" from bundle to bare repository |
Date: |
Wed, 29 Apr 2020 17:29:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 2020-04-29 17:05, Vadim Zeitlin wrote:
> On Wed, 29 Apr 2020 15:03:28 +0000 Greg Chicares <address@hidden> wrote:
>
> GC> Vadim--How can I "pull" a bundle to a bare repository?
>
> I didn't have time to test it yet and will try to do it a.s.a.p. and write
> more detailed instructions, but I thought it might be worth answering this
> quickly just in case you'd like to try it yourself, so:
>
> I believe you should use git-update-ref command to do it. Assuming you
> want to update the master branch of your repository, the following should
> do it:
>
> $ git fetch ../catchup.bundle
> $ git update-ref -m "Update from latest bundle" refs/heads/master
> FETCH_HEAD
Great, that seems to do exactly what we need:
/srv/cache_for_lmi/blessed/proprietary[0]$git fetch ../catchup.bundle
>From ../catchup.bundle
* branch HEAD -> FETCH_HEAD
/srv/cache_for_lmi/blessed/proprietary[0]$git rev-parse HEAD
07f31c963a9dd45f41cfd1e8dd4fcd6ff297c59e
/srv/cache_for_lmi/blessed/proprietary[0]$git rev-parse FETCH_HEAD
b12435394717dcd45f37eead944ca82ab2a59812
/srv/cache_for_lmi/blessed/proprietary[0]$git update-ref refs/heads/master
FETCH_HEAD
/srv/cache_for_lmi/blessed/proprietary[0]$git rev-parse HEAD
b12435394717dcd45f37eead944ca82ab2a59812
Thanks.