Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added check for length of $filename. $filename would be empty if pass…

…ed file was in the root of the project.
  • Loading branch information...
commit 375af73176c265dfa50258481bcfc6bedb89afb7 1 parent 8397aca
@maghiel maghiel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 .git_filters/rcs-keywords.smudge
View
4 .git_filters/rcs-keywords.smudge
@@ -22,6 +22,10 @@ $path = shift;
$path =~ /.*\/(.*)/;
$filename = $1;
+if (0 == length($filename)) {
+ $filename = $path;
+}
+
# Need to grab filename and to use git log for this to be accurate.
$rev = `git log -- $path | head -n 3`;
$rev =~ /^Author:\s*(.*)\s*$/m;
Please sign in to comment.
Something went wrong with that request. Please try again.