diff options
author | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-04-18 02:23:13 -0300 |
---|---|---|
committer | Nicolás Alvarez <nicolas.alvarez@gmail.com> | 2011-04-18 02:23:13 -0300 |
commit | 197979b6a641b8b5fa4856c700b1235491c73a41 (patch) | |
tree | c94eee6a27d8715204867c0c6474cae01dd27042 /src | |
parent | 1a41c9661e837e2463c492693d4526df8cc0538c (diff) | |
download | svn2git-197979b6a641b8b5fa4856c700b1235491c73a41.tar svn2git-197979b6a641b8b5fa4856c700b1235491c73a41.tar.gz svn2git-197979b6a641b8b5fa4856c700b1235491c73a41.tar.bz2 svn2git-197979b6a641b8b5fa4856c700b1235491c73a41.tar.xz svn2git-197979b6a641b8b5fa4856c700b1235491c73a41.zip |
Use +0000 instead of -0000 for timezone indicator in timestamps.
Git seems to always output +0000, so when filter-branching,
every single commit changes hash because dates are changed
from - to +0.
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.cpp b/src/repository.cpp index 2f8e16f..e6ea81c 100644 --- a/src/repository.cpp +++ b/src/repository.cpp @@ -470,7 +470,7 @@ void Repository::finalizeTags() QByteArray s = "progress Creating annotated tag " + tagName.toUtf8() + " from ref " + branchRef + "\n" + "tag " + tagName.toUtf8() + "\n" + "from " + branchRef + "\n" - + "tagger " + tag.author + ' ' + QByteArray::number(tag.dt) + " -0000" + "\n" + + "tagger " + tag.author + ' ' + QByteArray::number(tag.dt) + " +0000" + "\n" + "data " + QByteArray::number( message.length() ) + "\n"; fastImport.write(s); } @@ -645,7 +645,7 @@ void Repository::Transaction::commit() s.setCodec("UTF-8"); s << "commit " << branchRef << endl; s << "mark :" << QByteArray::number(mark) << endl; - s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " -0000" << endl; + s << "committer " << QString::fromUtf8(author) << ' ' << datetime << " +0000" << endl; s << "data " << message.length() << endl; } |