summaryrefslogtreecommitdiff
path: root/scripts/vyatta-config-mgmt.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-config-mgmt.pl')
-rwxr-xr-xscripts/vyatta-config-mgmt.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index d643aef..bf53b29 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -55,7 +55,13 @@ my $debug = 0;
sub get_link {
my ($path) = @_;
- my $link = $commit_hook_dir . basename($path);
+ my $script = basename($path);
+ if ($script =~ /revs/) {
+ $script = "01" . $script;
+ } elsif ($script =~ /push/) {
+ $script = "02" . $script;
+ }
+ my $link = $commit_hook_dir . $script;
return $link;
}