{"thread":{"id":"26300","subject":"filter-branch --env-filter GIT_AUTHOR_DATE","startedAt":"2011-01-18T16:43:40Z","lastAt":"2011-01-19T14:30:55Z","messageCount":6,"participants":["Tuncer Ayaz","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159586","messageId":"AANLkTinx7cs6YTvSTTv-njHA+vk264u1EaJettSdBF9U@mail.gmail.com","threadId":"26300","inReplyTo":null,"subject":"filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Tuncer Ayaz","fromEmail":"tuncer.ayaz@gmail.com","sentAt":"2011-01-18T16:43:40Z","receivedAt":"2011-01-18T16:43:40Z","isPatch":false,"sender":{"key":"tuncer.ayaz@gmail.com","avatar":null},"body":"To fix invalid timezone info in a repo I ran\ngit filter-branch --env-filter '\n  GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD\n\nThis fixed the invalid entries but the new timezone is -0700\ninstead of -0800. Is this expected?\n\ngit version 1.7.4.rc2\n"},{"id":"159623","messageId":"4D368C49.3080105@viscovery.net","threadId":"26300","inReplyTo":"AANLkTinx7cs6YTvSTTv-njHA+vk264u1EaJettSdBF9U@mail.gmail.com","subject":"Re: filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2011-01-19T07:01:29Z","receivedAt":"2011-01-19T07:01:29Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 1/18/2011 17:43, schrieb Tuncer Ayaz:\n> To fix invalid timezone info in a repo I ran\n> git filter-branch --env-filter '\n>   GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD\n> \n> This fixed the invalid entries but the new timezone is -0700\n> instead of -0800. Is this expected?\n\nParse error. You fixed it, but it is not fixed? So what?\n\nWhat do you mean by \"the new timezone is\"? Do you mean \"...is reported\nas\"? If so, reported by which tools?\n\n> git version 1.7.4.rc2\n\nI tried your command, but the timezone was changed in the expected way.\n\n-- Hannes\n"},{"id":"159634","messageId":"AANLkTi=TAhYeWbyocag2myBXA2TfH7_r=hmam51YKbhm@mail.gmail.com","threadId":"26300","inReplyTo":"4D368C49.3080105@viscovery.net","subject":"Re: filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Tuncer Ayaz","fromEmail":"tuncer.ayaz@gmail.com","sentAt":"2011-01-19T10:08:48Z","receivedAt":"2011-01-19T10:08:48Z","isPatch":false,"sender":{"key":"tuncer.ayaz@gmail.com","avatar":null},"body":"On Wed, Jan 19, 2011 at 8:01 AM, Johannes Sixt wrote:\n> Am 1/18/2011 17:43, schrieb Tuncer Ayaz:\n>> To fix invalid timezone info in a repo I ran\n>> git filter-branch --env-filter '\n>>   GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD\n>>\n>> This fixed the invalid entries but the new timezone is -0700\n>> instead of -0800. Is this expected?\n>\n> Parse error. You fixed it, but it is not fixed? So what?\n\nFixed because it is not +0000 anymore. Surprised because the new\ntimezone is -0700 and not -0800.\n\n> What do you mean by \"the new timezone is\"? Do you mean \"...is reported\n> as\"? If so, reported by which tools?\n\ngit log\ngit cat-file $REV\n\n>> git version 1.7.4.rc2\n>\n> I tried your command, but the timezone was changed in the expected way.\n\nHow did you check?\n"},{"id":"159635","messageId":"AANLkTik43suRRzcPdBZMKifxKx8cwi01H+zGvj5nnvWa@mail.gmail.com","threadId":"26300","inReplyTo":"AANLkTi=TAhYeWbyocag2myBXA2TfH7_r=hmam51YKbhm@mail.gmail.com","subject":"Re: filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Tuncer Ayaz","fromEmail":"tuncer.ayaz@gmail.com","sentAt":"2011-01-19T10:12:12Z","receivedAt":"2011-01-19T10:12:12Z","isPatch":false,"sender":{"key":"tuncer.ayaz@gmail.com","avatar":null},"body":"On Wed, Jan 19, 2011 at 11:08 AM, Tuncer Ayaz wrote:\n> git cat-file $REV\n\nTo be correct:\ngit cat-file -p $REV\n"},{"id":"159638","messageId":"4D36BDD9.4050108@viscovery.net","threadId":"26300","inReplyTo":"AANLkTi=TAhYeWbyocag2myBXA2TfH7_r=hmam51YKbhm@mail.gmail.com","subject":"Re: filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2011-01-19T10:32:57Z","receivedAt":"2011-01-19T10:32:57Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 1/19/2011 11:08, schrieb Tuncer Ayaz:\n> On Wed, Jan 19, 2011 at 8:01 AM, Johannes Sixt wrote:\n>> Am 1/18/2011 17:43, schrieb Tuncer Ayaz:\n>>> To fix invalid timezone info in a repo I ran\n>>> git filter-branch --env-filter '\n>>>   GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD\n>>>\n>>> This fixed the invalid entries but the new timezone is -0700\n>>> instead of -0800. Is this expected?\n>>\n>> Parse error. You fixed it, but it is not fixed? So what?\n> \n> Fixed because it is not +0000 anymore. Surprised because the new\n> timezone is -0700 and not -0800.\n> \n>> What do you mean by \"the new timezone is\"? Do you mean \"...is reported\n>> as\"? If so, reported by which tools?\n> \n> git log\n> git cat-file $REV\n\n$ git filter-branch -f --env-filter 'echo; echo \"$GIT_AUTHOR_DATE\"; GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0100/-0800/`; echo \"$GIT_AUTHOR_DATE\"' -- -1\nRewrite 6fb5ec91707a4433628eae5d9d68153ca8b819fe (1/1)\n1292311163 +0100\n1292311163 -0800\n\nRef 'refs/heads/master' was rewritten\n$ git cat-file commit HEAD\ntree 43554f2216bbcfc96385db0641ae212409f26f21\nparent 942f54790453970cfffbfedf29e47ac27b9ba995\nauthor Johannes Sixt <j.sixt@viscovery.net> 1292311163 -0800\ncommitter Johannes Sixt <j.sixt@viscovery.net> 1292311163 +0100\n\nmaster\n\n*Shrug*\n\n-- Hannes\n"},{"id":"159649","messageId":"AANLkTimiG=Tr=rfLtE54pJvN8G05mx=GGsLDN4AbzLO+@mail.gmail.com","threadId":"26300","inReplyTo":"4D36BDD9.4050108@viscovery.net","subject":"Re: filter-branch --env-filter GIT_AUTHOR_DATE","fromName":"Tuncer Ayaz","fromEmail":"tuncer.ayaz@gmail.com","sentAt":"2011-01-19T14:30:55Z","receivedAt":"2011-01-19T14:30:55Z","isPatch":false,"sender":{"key":"tuncer.ayaz@gmail.com","avatar":null},"body":"On Wed, Jan 19, 2011 at 11:32 AM, Johannes Sixt wrote:\n> Am 1/19/2011 11:08, schrieb Tuncer Ayaz:\n>> On Wed, Jan 19, 2011 at 8:01 AM, Johannes Sixt wrote:\n>>> Am 1/18/2011 17:43, schrieb Tuncer Ayaz:\n>>>> To fix invalid timezone info in a repo I ran\n>>>> git filter-branch --env-filter '\n>>>>   GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD\n>>>>\n>>>> This fixed the invalid entries but the new timezone is -0700\n>>>> instead of -0800. Is this expected?\n>>>\n>>> Parse error. You fixed it, but it is not fixed? So what?\n>>\n>> Fixed because it is not +0000 anymore. Surprised because the new\n>> timezone is -0700 and not -0800.\n>>\n>>> What do you mean by \"the new timezone is\"? Do you mean \"...is reported\n>>> as\"? If so, reported by which tools?\n>>\n>> git log\n>> git cat-file $REV\n>\n> $ git filter-branch -f --env-filter 'echo; echo \"$GIT_AUTHOR_DATE\";\n> GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0100/-0800/`;\n> echo \"$GIT_AUTHOR_DATE\"' -- -1\n> Rewrite 6fb5ec91707a4433628eae5d9d68153ca8b819fe (1/1)\n> 1292311163 +0100\n> 1292311163 -0800\n>\n> Ref 'refs/heads/master' was rewritten\n> $ git cat-file commit HEAD\n> tree 43554f2216bbcfc96385db0641ae212409f26f21\n> parent 942f54790453970cfffbfedf29e47ac27b9ba995\n> author Johannes Sixt <j.sixt@viscovery.net> 1292311163 -0800\n> committer Johannes Sixt <j.sixt@viscovery.net> 1292311163 +0100\n>\n> master\n>\n> *Shrug*\n\nCannot reproduce anymore. Works as expected.\n\nSuccessfully rewrote all GIT_AUTHOR_DATE timezone entries:\n  -0700 -> -0800\n  -0800 -> +0000\n  +0000 -> -0800\n\ngit version 1.7.4.rc2.3.g60a2e\n"}]}