aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/git.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-22 13:06:08 -0400
committerJoey Hess <joey@kitenet.net>2012-03-22 13:07:30 -0400
commite7bf599ee027b0f35618fe6bc504d8137d404520 (patch)
treec1447883662688da08cc09070e701d7b5ac105d3 /IkiWiki/Plugin/git.pm
parent4b3102b48e80f639679358cd8a8525823b282431 (diff)
downloadikiwiki-e7bf599ee027b0f35618fe6bc504d8137d404520.tar
ikiwiki-e7bf599ee027b0f35618fe6bc504d8137d404520.tar.gz
remove debug message
A file may have no git sha1 if it's in the underlay, or just is not checked into git. This debug message doesn't add any value and is potentially confusing.
Diffstat (limited to 'IkiWiki/Plugin/git.pm')
-rw-r--r--IkiWiki/Plugin/git.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 535cd5fe0..0c0e27521 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -469,13 +469,10 @@ sub git_sha1 (;$) {
# Ignore error since a non-existing file might be given.
my ($sha1) = run_or_non('git', 'rev-list', '--max-count=1', 'HEAD',
'--', $file);
- if ($sha1) {
+ if (defined $sha1) {
($sha1) = $sha1 =~ m/($sha1_pattern)/; # sha1 is untainted now
}
- else {
- debug("Empty sha1sum for '$file'.");
- }
- return defined $sha1 ? $sha1 : q{};
+ return defined $sha1 ? $sha1 : '';
}
sub rcs_update () {