diff shows new files
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 18 Mar 2010 22:24:29 +0000 (23:24 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 18 Mar 2010 22:24:29 +0000 (23:24 +0100)
bak-git-server.pl

index d6cf7b0..a826934 100755 (executable)
@@ -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 -Nuw $hostname$path $on_host$path");
                        while(<$diff>) {
                                print $client $_;
                        }