summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-04-04 00:10:51 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-04-04 00:10:58 -0700
commit9182b611606651a7dc7cecb917c12df87a14838c (patch)
treebe6b4ebfc46bbb7db8e6d64f0115b36d99fadc51
parent68b0b6bcd38437b50288530ca975f3da53b6bb19 (diff)
downloaddotfiles-9182b611606651a7dc7cecb917c12df87a14838c.tar.gz
support building other branches
-rwxr-xr-xbin/buildssrht-preupload7
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(
" ",