{"thread":{"id":"46507","subject":"Cloning an specific commit from the hash","startedAt":"2017-08-03T16:27:30Z","lastAt":"2017-08-03T20:47:13Z","messageCount":4,"participants":["Alejandro Aguila","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"325548","messageId":"CA+kp=uoHiP8t_40yZvT7r9ziB4uSxgcc=NRY0+XzQJDkuJpx4A@mail.gmail.com","threadId":"46507","inReplyTo":null,"subject":"Cloning an specific commit from the hash","fromName":"Alejandro Aguila","fromEmail":"aguilasainz@gmail.com","sentAt":"2017-08-03T16:27:05Z","receivedAt":"2017-08-03T16:27:30Z","isPatch":false,"sender":{"key":"aguilasainz@gmail.com","avatar":null},"body":"Hi there!\n\nI've been working with Oscomo's project OpenBSC\nhttps://github.com/osmocom/openbsc and my old hardware won't work with\nthe latest version, which is 0.15. So I asked for help to osmocom guys\nand there's someone who told me that his version is working with the\nsame hardware I have, so have gave me the OpenBSC hash for it (\n7f100c9712de5c684462e809bf31a58c0c326337 ).\n\nTo be honest I don't use git more apart of cloning repos, so I would\nlike to know how can I pull the files for that hash. And since OpenBSC\nhas some dependencies that are in osmocom's github repo, I don't know\nif I can get the version that worked for the one committed in the\nhash.\n\nSorry for the noob question, but I've been googling and trying some\nstuff and my brain is now blocked. Help will be very appreciated :)\n\nCheers!\n\n-- \nAlejandro Aguila Sáinz\n"},{"id":"325551","messageId":"xmqqtw1opnla.fsf@gitster.mtv.corp.google.com","threadId":"46507","inReplyTo":"CA+kp=uoHiP8t_40yZvT7r9ziB4uSxgcc=NRY0+XzQJDkuJpx4A@mail.gmail.com","subject":"Re: Cloning an specific commit from the hash","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-03T17:28:49Z","receivedAt":"2017-08-03T17:29:03Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alejandro Aguila <aguilasainz@gmail.com> writes:\n\n> I've been working with Oscomo's project OpenBSC\n> https://github.com/osmocom/openbsc and my old hardware won't work with\n> the latest version, which is 0.15. So I asked for help to osmocom guys\n> and there's someone who told me that his version is working with the\n> same hardware I have, so have gave me the OpenBSC hash for it (\n> 7f100c9712de5c684462e809bf31a58c0c326337 ).\n>\n> To be honest I don't use git more apart of cloning repos, so I would\n> like to know how can I pull the files for that hash. And since OpenBSC\n> has some dependencies that are in osmocom's github repo, I don't know\n> if I can get the version that worked for the one committed in the\n> hash.\n\nWhen a user of a project that uses Git says \"try this version\"\nwithout telling you on which branch that version appears, that\nstatement typically means that anybody who clones that project\nwould get the commit, i.e.\n\n    $ git clone https://github.com/.../openbsc\n    $ cd openbsc\n    $ git checkout 7f100c9712de\n\nThis will give you a checkout without being on any named branch,\nwhich would be sufficient for you to build; if you want further work\non top of that commit, you might want to do the last step more like\nso:\n\n    $ git checkout -b mybranch 7f100c9712de\n\nIf you are not developing at all, then starting at this URL\n\nhttps://github.com/osmocom/openbsc/commit/7f100c9712de5c684462e809bf31a58c0c326337\n\nand clicking around, you should be able to find this URL\n\nhttps://github.com/osmocom/openbsc/archive/7f100c9712de5c684462e809bf31a58c0c326337.zip\n\nwhich would presumably give you a Zip archive that contains the\nfiles in that particular commit.\n\n\n"},{"id":"325553","messageId":"CA+kp=uq1L7TFjXMCoFaNxq5wCNtKWw48MXFX_Unh-QxDf587dg@mail.gmail.com","threadId":"46507","inReplyTo":"xmqqtw1opnla.fsf@gitster.mtv.corp.google.com","subject":"Re: Cloning an specific commit from the hash","fromName":"Alejandro Aguila","fromEmail":"aguilasainz@gmail.com","sentAt":"2017-08-03T17:55:31Z","receivedAt":"2017-08-03T17:55:57Z","isPatch":false,"sender":{"key":"aguilasainz@gmail.com","avatar":null},"body":"Thanks Junio!\n\nIs there any chance to find out what are the trees for the dependencies?\n\nCheers!\n\nOn 3 August 2017 at 12:28, Junio C Hamano <gitster@pobox.com> wrote:\n> Alejandro Aguila <aguilasainz@gmail.com> writes:\n>\n>> I've been working with Oscomo's project OpenBSC\n>> https://github.com/osmocom/openbsc and my old hardware won't work with\n>> the latest version, which is 0.15. So I asked for help to osmocom guys\n>> and there's someone who told me that his version is working with the\n>> same hardware I have, so have gave me the OpenBSC hash for it (\n>> 7f100c9712de5c684462e809bf31a58c0c326337 ).\n>>\n>> To be honest I don't use git more apart of cloning repos, so I would\n>> like to know how can I pull the files for that hash. And since OpenBSC\n>> has some dependencies that are in osmocom's github repo, I don't know\n>> if I can get the version that worked for the one committed in the\n>> hash.\n>\n> When a user of a project that uses Git says \"try this version\"\n> without telling you on which branch that version appears, that\n> statement typically means that anybody who clones that project\n> would get the commit, i.e.\n>\n>     $ git clone https://github.com/.../openbsc\n>     $ cd openbsc\n>     $ git checkout 7f100c9712de\n>\n> This will give you a checkout without being on any named branch,\n> which would be sufficient for you to build; if you want further work\n> on top of that commit, you might want to do the last step more like\n> so:\n>\n>     $ git checkout -b mybranch 7f100c9712de\n>\n> If you are not developing at all, then starting at this URL\n>\n> https://github.com/osmocom/openbsc/commit/7f100c9712de5c684462e809bf31a58c0c326337\n>\n> and clicking around, you should be able to find this URL\n>\n> https://github.com/osmocom/openbsc/archive/7f100c9712de5c684462e809bf31a58c0c326337.zip\n>\n> which would presumably give you a Zip archive that contains the\n> files in that particular commit.\n>\n>\n\n\n\n-- \nAlejandro Aguila Sáinz\n"},{"id":"325593","messageId":"xmqqh8xowf90.fsf@gitster.mtv.corp.google.com","threadId":"46507","inReplyTo":"CA+kp=uq1L7TFjXMCoFaNxq5wCNtKWw48MXFX_Unh-QxDf587dg@mail.gmail.com","subject":"Re: Cloning an specific commit from the hash","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-03T20:47:07Z","receivedAt":"2017-08-03T20:47:13Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alejandro Aguila <aguilasainz@gmail.com> writes:\n\n> Thanks Junio!\n>\n> Is there any chance to find out what are the trees for the dependencies?\n\nThat's not a Git question, but a question to whatever project you\nare working with, I would think.\n"}]}