Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Track source-revision in Fetcher

  • Loading branch information...
commit 682dbf4f57e374d1d13ea005c241d7a2074abbf4 1 parent aefb75b
@japhb japhb authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Panda/Fetcher.pm
View
5 lib/Panda/Fetcher.pm
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.