Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_tag potentailly does not work #19

Open
esc opened this issue May 16, 2013 · 2 comments
Open

git_tag potentailly does not work #19

esc opened this issue May 16, 2013 · 2 comments

Comments

@esc
Copy link

esc commented May 16, 2013

I am using the following puppet code:

class{git:
  svn => false,
  gui => false,
}

class cgit {
  git::repo{'cgit':
    path    => '/usr/local/src/cgit',
    source  => 'git://git.zx2c4.com/cgit',
    git_tag => 'v0.9.1',
  }

}

I am expecting this to clone the repo and check out the tag `v0.9.1`` But when
I go to check which version is actually checked out I see:

root@precise32:/usr/local/src/cgit# git describe
v0.9.1-88-g7966fd9

And not:

root@precise32:/usr/local/src/cgit# git describe
v0.9.1

Any ideas? Or is it an error on my part (am new to puppet).

@Aethylred
Copy link
Member

Hmm, the last part is the shortened hash. I'll have to look into it further and see if I can replicate the behavior.

@esc
Copy link
Author

esc commented May 17, 2013

Here is how the describe output is to be interpreted:

v0.9.1-88-g7966fd9
   ^    ^ ^   ^
   |    | |   |
   |    | |   +--- Abbreviated ID (SHA1) of the commit
   |    | +------- 'g' means this identifier was generated by git
   |    +--------- 88 commits ahead of the closest reachable tag in the DAG
   +-------------- The closest reachable tag

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants