From: Dobrica Pavlinusic Date: Tue, 19 Oct 2010 15:01:57 +0000 (+0200) Subject: execute commands on current path X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=069f46116819bf53cee31aeec783439546c97eb2;p=bak-git.git execute commands on current path This fixes long-snanding bug in which "bak diff" (and other commands) would return diff of whole host as opposed to working directory --- diff --git a/bak-git-server.pl b/bak-git-server.pl index 6c8a8f9..4776cc5 100755 --- a/bak-git-server.pl +++ b/bak-git-server.pl @@ -168,7 +168,7 @@ while (my $client = $server->accept()) { } } else { # commands without path will show host-wide status/changes - my $backup_path = $rel_path ? $backup_path : "$hostname/"; + my $backup_path = $path ? "$hostname/$path" : "$hostname/"; # hostname must end with / to prevent error from git: # ambiguous argument 'arh-hw': both revision and filename # to support branches named as hosts