projects
/
bak-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
390d5cf
)
don't pull whole directory on diff (sigh!)
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 May 2010 07:19:50 +0000
(09:19 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 4 May 2010 08:31:54 +0000
(10:31 +0200)
bak-git-server.pl
patch
|
blob
|
history
diff --git
a/bak-git-server.pl
b/bak-git-server.pl
index
6d8cc3a
..
2b223c6
100755
(executable)
--- a/
bak-git-server.pl
+++ b/
bak-git-server.pl
@@
-146,7
+146,7
@@
while (my $client = $server->accept()) {
} elsif ( $command =~ m{(diff|status|log|ch)} ) {
$command .= ' --stat' if $command eq 'log';
$command = 'log --patch-with-stat' if $command =~ m/^ch/;
- pull_changes( $hostname
, $path
) if $command eq 'diff';
+ pull_changes( $hostname ) if $command eq 'diff';
if ( $on_host ) {
system 'rsync', '-avv', "root\@$on_host:$path", "$on_host/$path";
open(my $diff, '-|', "diff -Nuw $hostname$path $on_host$path");