tools/wrap-commit-msg.py: fix file truncation
authorJames Zern <jzern@google.com>
Fri, 30 Mar 2012 01:13:27 +0000 (18:13 -0700)
committerJames Zern <jzern@google.com>
Fri, 30 Mar 2012 01:13:27 +0000 (18:13 -0700)
commit00794a93eccb7299942bd833df83d6756e6b7463
tree6708825903ef3d31fbdc41afff5af13c0716e0c3
parent8b15cf69290ca658d921266fe8fc92861ed5f4ab
tools/wrap-commit-msg.py: fix file truncation

truncate() operates from the current file pointer position. On at least
Linux specifying 0 without resetting the pointer will pad the file with
zeros to the current offset.

Change-Id: Ide704a1097f46c0c530f27212bb12e923f93e2d6
tools/wrap-commit-msg.py