Thanks for the responses, I figured out that I can get a specific revision
number based on the commit hash:

$ git describe --tag 412dd75428226d10044e80e741addecb24dbedb5
2.2.0-git-7645-g412dd75

I can clone the specific revision source from Ansible using
--version=2.2.0-git-7645-g412dd75, but how can I clone that revision source
from git command? It failed at following command, apparently git clone does
not have an option --version, what is the equivalent option for --version?

$ git clone --version 2.2.0-git-7645-g412dd75
https://github.com/videolan/vlc.git

error: unknown option `version'






On Thu, May 19, 2016 at 1:02 AM, Dale R. Worley <wor...@alum.mit.edu> wrote:

> Konstantin Khomoutov <flatw...@users.sourceforge.net> writes:
> > Note that accessing commits by date is imprecise by its nature and,
> > while useful sometimes, might indicate you're trying to do something
> > wrong way.
>
> In particular, the effects of time-zones can cause revisions to not have
> the dates you expect them to.  If you are extracting a list of one or a
> small number of revisions, and then examining the list personally to
> find the revision you want, using dates is not particularly hazardous.
> But using date-access automatically (in a script, say) can easily
> malfunction.
>
> Dale
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/Cp2nqLc_Oz4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to