diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-04 00:10:51 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-04 00:10:58 -0700 |
commit | 9182b611606651a7dc7cecb917c12df87a14838c (patch) | |
tree | be6b4ebfc46bbb7db8e6d64f0115b36d99fadc51 | |
parent | 68b0b6bcd38437b50288530ca975f3da53b6bb19 (diff) | |
download | dotfiles-9182b611606651a7dc7cecb917c12df87a14838c.tar.gz |
support building other branches
-rwxr-xr-x | bin/buildssrht-preupload | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/buildssrht-preupload b/bin/buildssrht-preupload index 8ae823e0..47fb34bb 100755 --- a/bin/buildssrht-preupload +++ b/bin/buildssrht-preupload @@ -44,6 +44,12 @@ chomp(my $source = `dpkg-parsechangelog -SSource`); chomp(my $version = `dpkg-parsechangelog -SVersion`); my $note = "Pre-upload checks for $source $version"; +$git->fetch($remote); +my ($branch) = $git->symbolic_ref("HEAD"); +my ($commit) = $git->rev_parse({ verify => 1 }, "HEAD"); +$git->for_each_ref({ contains => $branch }, "refs/remotes/$remote") + or die "remote $remote doesn't appear to have a copy of your HEAD"; + my $schroot = "$dist-amd64-sbuild"; my $changes = "${source}_${version}_multi.changes"; @@ -57,6 +63,7 @@ $manifest->{tasks} = [ [ setup => [ "cd $source", + "git checkout $commit", "git deborig || origtargz", join( " ", |