diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-03-21 13:14:46 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-03-22 15:19:51 +0000 |
commit | e1adbc736603409551756653090e4455562833af (patch) | |
tree | 4d9cc265a29b1626de5035cbec742f63ff530bea /dgit | |
parent | 5408b0c227d942af55442389894a9ed7338a55ce (diff) |
Break out $branchprefix, server_branch, server_ref into Dgit.pm
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -104,15 +104,14 @@ autoflush STDOUT 1; our $remotename = 'dgit'; our @ourdscfield = qw(Dgit Vcs-Dgit-Master); -our $branchprefix = 'dgit'; our $csuite; our $instead_distro; sub lbranch () { return "$branchprefix/$csuite"; } my $lbranch_re = '^refs/heads/'.$branchprefix.'/([^/.]+)$'; sub lref () { return "refs/heads/".lbranch(); } -sub lrref () { return "refs/remotes/$remotename/$branchprefix/$csuite"; } -sub rrref () { return "refs/$branchprefix/$csuite"; } +sub lrref () { return "refs/remotes/$remotename/".server_branch($csuite); } +sub rrref () { return server_ref($csuite); } sub stripepoch ($) { my ($vsn) = @_; |