Skip to content

Commit

Permalink
Track source-revision in Fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Aug 21, 2012
1 parent aefb75b commit 682dbf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Panda/Fetcher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class Panda::Fetcher does Pies::Fetcher {
shell "git clone -q $url $dest"
and die $p, "Failed cloning the repo";
}

indir $dest, {
my $desc = qx{git describe --always --dirty}.chomp;
$p.metainfo<source-revision> = $desc;
};
}
when 'local' {
for find(dir => $url).list {
Expand Down

0 comments on commit 682dbf4

Please sign in to comment.