projects
/
update-copyright.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vcs: adjust .original_year() relative path calculation to match .authors().
[update-copyright.git]
/
update_copyright
/
vcs
/
__init__.py
diff --git
a/update_copyright/vcs/__init__.py
b/update_copyright/vcs/__init__.py
index 32e5d4c217f0a108fdba996d902884e2cc6c5e63..e62cf261c324a5a22dd8dc74e7624d24031a8cad 100644
(file)
--- a/
update_copyright/vcs/__init__.py
+++ b/
update_copyright/vcs/__init__.py
@@
-47,8
+47,9
@@
class VCSBackend (object):
years.update(self._year_hacks.values())
else:
filename = _os_path.relpath(filename, self._root)
years.update(self._year_hacks.values())
else:
filename = _os_path.relpath(filename, self._root)
- if _utils.splitpath(filename) in self._year_hacks:
- years.add(self._year_hacks[_utils.splitpath(filename)])
+ splitpath = _utils.splitpath(filename)
+ if splitpath in self._year_hacks:
+ years.add(self._year_hacks[splitpath])
years = sorted(years)
return years[0]
years = sorted(years)
return years[0]