Browse Source

filetime_from_git: Fix bad function call.

datetime_from_timestamp() is not a function provided by the Git wrapper,
it's a module-level function of the calling module.

Signed-off-by: Tilman Blumenbach <tilman+git@ax86.net>
Tilman Blumenbach 9 years ago
parent
commit
7c98c58502
1 changed files with 1 additions and 1 deletions
  1. 1 1
      filetime_from_git/filetime_from_git.py

+ 1 - 1
filetime_from_git/filetime_from_git.py

@@ -45,7 +45,7 @@ def filetime_from_git(content):
 
         if len(commits) == 0:
             # never commited, but staged
-            content.date = git.datetime_from_timestamp(
+            content.date = datetime_from_timestamp(
                 os.stat(path).st_ctime, content)
         else:
             # has commited