pass sha1 hash to show command
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Jun 2011 21:32:06 +0000 (23:32 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Jun 2011 21:32:06 +0000 (23:32 +0200)
bak-git-server.pl

index f1806a4..d62dbf1 100755 (executable)
@@ -234,7 +234,7 @@ while (my $client = $server->accept()) {
        } elsif ( $command eq 'ls' ) {
                print $client `ls $backup_path`;
        } elsif ( $command eq 'show' ) {
-               print $client `git show`;
+               print $client `git show $rel_path`;
        } else {
                print $client "Unknown command: $command\n";
        }