projects
/
bak-git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
53f19e1
)
diff shows new files
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 18 Mar 2010 22:24:29 +0000
(23:24 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 18 Mar 2010 22:24:29 +0000
(23:24 +0100)
bak-git-server.pl
patch
|
blob
|
history
diff --git
a/bak-git-server.pl
b/bak-git-server.pl
index
d6cf7b0
..
a826934
100755
(executable)
--- a/
bak-git-server.pl
+++ b/
bak-git-server.pl
@@
-136,7
+136,7
@@
while (my $client = $server->accept()) {
pull_changes $hostname if $command eq 'diff';
if ( $on_host ) {
system 'rsync', '-avv', "root\@$on_host:$path", "$on_host/$path";
- open(my $diff, '-|', "diff -uw $hostname$path $on_host$path");
+ open(my $diff, '-|', "diff -
N
uw $hostname$path $on_host$path");
while(<$diff>) {
print $client $_;
}