diff options
author | Wayne Davison <wayned@samba.org> | 2007-11-28 11:52:16 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-11-29 09:29:45 -0800 |
commit | 9217ce30e308db28dc4789ef009ecf553f35097c (patch) | |
tree | 088a97c0d68b97e4451b65890be7a3a8df17ba71 /support/git-set-file-times | |
parent | d52607ecd6c8b4e68ebacff8cd5163257f59cfc2 (diff) | |
download | rsync-9217ce30e308db28dc4789ef009ecf553f35097c.tar.gz |
Revised release-rsync and nightly-rsync code to create a tar files
with the right timestamps.
Diffstat (limited to 'support/git-set-file-times')
-rwxr-xr-x | support/git-set-file-times | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/git-set-file-times b/support/git-set-file-times index 9ddef25f..85d854e8 100755 --- a/support/git-set-file-times +++ b/support/git-set-file-times @@ -8,6 +8,7 @@ use strict; my %ls; my $commit_time; +my $prefix = @ARGV && $ARGV[0] =~ s/^--prefix=// ? shift : ''; $/ = "\0"; open FH, 'git ls-files -z|' or die $!; @@ -27,6 +28,7 @@ while (<FH>) { my @files = delete @ls{split(/\0/, $_)}; @files = grep { defined $_ } @files; next unless @files; + map { s/^/$prefix/ } @files; utime $commit_time, $commit_time, @files; } last unless %ls; |