git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Cloning an specific commit from the hash
@ 2017-08-03 16:27 Alejandro Aguila
  2017-08-03 17:28 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Aguila @ 2017-08-03 16:27 UTC (permalink / raw)
  To: git

Hi there!

I've been working with Oscomo's project OpenBSC
https://github.com/osmocom/openbsc and my old hardware won't work with
the latest version, which is 0.15. So I asked for help to osmocom guys
and there's someone who told me that his version is working with the
same hardware I have, so have gave me the OpenBSC hash for it (
7f100c9712de5c684462e809bf31a58c0c326337 ).

To be honest I don't use git more apart of cloning repos, so I would
like to know how can I pull the files for that hash. And since OpenBSC
has some dependencies that are in osmocom's github repo, I don't know
if I can get the version that worked for the one committed in the
hash.

Sorry for the noob question, but I've been googling and trying some
stuff and my brain is now blocked. Help will be very appreciated :)

Cheers!

-- 
Alejandro Aguila Sáinz

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

* Re: Cloning an specific commit from the hash
  2017-08-03 16:27 Cloning an specific commit from the hash Alejandro Aguila
@ 2017-08-03 17:28 ` Junio C Hamano
  2017-08-03 17:55   ` Alejandro Aguila
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2017-08-03 17:28 UTC (permalink / raw)
  To: Alejandro Aguila; +Cc: git

Alejandro Aguila <aguilasainz@gmail.com> writes:

> I've been working with Oscomo's project OpenBSC
> https://github.com/osmocom/openbsc and my old hardware won't work with
> the latest version, which is 0.15. So I asked for help to osmocom guys
> and there's someone who told me that his version is working with the
> same hardware I have, so have gave me the OpenBSC hash for it (
> 7f100c9712de5c684462e809bf31a58c0c326337 ).
>
> To be honest I don't use git more apart of cloning repos, so I would
> like to know how can I pull the files for that hash. And since OpenBSC
> has some dependencies that are in osmocom's github repo, I don't know
> if I can get the version that worked for the one committed in the
> hash.

When a user of a project that uses Git says "try this version"
without telling you on which branch that version appears, that
statement typically means that anybody who clones that project
would get the commit, i.e.

    $ git clone https://github.com/.../openbsc
    $ cd openbsc
    $ git checkout 7f100c9712de

This will give you a checkout without being on any named branch,
which would be sufficient for you to build; if you want further work
on top of that commit, you might want to do the last step more like
so:

    $ git checkout -b mybranch 7f100c9712de

If you are not developing at all, then starting at this URL

https://github.com/osmocom/openbsc/commit/7f100c9712de5c684462e809bf31a58c0c326337

and clicking around, you should be able to find this URL

https://github.com/osmocom/openbsc/archive/7f100c9712de5c684462e809bf31a58c0c326337.zip

which would presumably give you a Zip archive that contains the
files in that particular commit.



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

* Re: Cloning an specific commit from the hash
  2017-08-03 17:28 ` Junio C Hamano
@ 2017-08-03 17:55   ` Alejandro Aguila
  2017-08-03 20:47     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Aguila @ 2017-08-03 17:55 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Thanks Junio!

Is there any chance to find out what are the trees for the dependencies?

Cheers!

On 3 August 2017 at 12:28, Junio C Hamano <gitster@pobox.com> wrote:
> Alejandro Aguila <aguilasainz@gmail.com> writes:
>
>> I've been working with Oscomo's project OpenBSC
>> https://github.com/osmocom/openbsc and my old hardware won't work with
>> the latest version, which is 0.15. So I asked for help to osmocom guys
>> and there's someone who told me that his version is working with the
>> same hardware I have, so have gave me the OpenBSC hash for it (
>> 7f100c9712de5c684462e809bf31a58c0c326337 ).
>>
>> To be honest I don't use git more apart of cloning repos, so I would
>> like to know how can I pull the files for that hash. And since OpenBSC
>> has some dependencies that are in osmocom's github repo, I don't know
>> if I can get the version that worked for the one committed in the
>> hash.
>
> When a user of a project that uses Git says "try this version"
> without telling you on which branch that version appears, that
> statement typically means that anybody who clones that project
> would get the commit, i.e.
>
>     $ git clone https://github.com/.../openbsc
>     $ cd openbsc
>     $ git checkout 7f100c9712de
>
> This will give you a checkout without being on any named branch,
> which would be sufficient for you to build; if you want further work
> on top of that commit, you might want to do the last step more like
> so:
>
>     $ git checkout -b mybranch 7f100c9712de
>
> If you are not developing at all, then starting at this URL
>
> https://github.com/osmocom/openbsc/commit/7f100c9712de5c684462e809bf31a58c0c326337
>
> and clicking around, you should be able to find this URL
>
> https://github.com/osmocom/openbsc/archive/7f100c9712de5c684462e809bf31a58c0c326337.zip
>
> which would presumably give you a Zip archive that contains the
> files in that particular commit.
>
>



-- 
Alejandro Aguila Sáinz

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

* Re: Cloning an specific commit from the hash
  2017-08-03 17:55   ` Alejandro Aguila
@ 2017-08-03 20:47     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2017-08-03 20:47 UTC (permalink / raw)
  To: Alejandro Aguila; +Cc: git

Alejandro Aguila <aguilasainz@gmail.com> writes:

> Thanks Junio!
>
> Is there any chance to find out what are the trees for the dependencies?

That's not a Git question, but a question to whatever project you
are working with, I would think.

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

end of thread, other threads:[~2017-08-03 20:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-03 16:27 Cloning an specific commit from the hash Alejandro Aguila
2017-08-03 17:28 ` Junio C Hamano
2017-08-03 17:55   ` Alejandro Aguila
2017-08-03 20:47     ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).