summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorCody Herriges <c.a.herriges@gmail.com>2011-05-24 21:24:26 +1200
committerCody Herriges <c.a.herriges@gmail.com>2011-06-06 10:42:24 -0700
commit8e51aebd4cf77c7d68eee70dfa0e16909aa114c5 (patch)
tree7a86ce210825fb461d57c6b5c95b3fc2021a9955 /Rakefile
parentf31853d1c3ccb4d84ae7e417bc25e14260d7e969 (diff)
downloadpuppet-vcsrepo-8e51aebd4cf77c7d68eee70dfa0e16909aa114c5.tar.gz
puppet-vcsrepo-8e51aebd4cf77c7d68eee70dfa0e16909aa114c5.tar.bz2
(#7797) Makes git tags actually work.
Fixes a number of issues with the git provider. remote_branch_revision? method was always returning true because it would always at least return something, even if that something was a zero length array. You normally don't desire a tag to become a branch since it creates ambiguity so I removed that. latest method had no concept of (no branch) and so would fail if you switched to a remote branch or a tag. Then finally revision sha1 returned by 'git rev-parse' for tags is not the revision of the commit the tag represents. We have to use 'git show' and do some text parsing to actually figure out which commit goes with which tag.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions