{"thread":{"id":"6225","subject":"[BUG] stgit: unexpected \"unknown user details\" on refresh","startedAt":"2007-01-04T23:22:24Z","lastAt":"2007-01-05T22:29:44Z","messageCount":3,"participants":["Yann Dirson","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"30841","messageId":"20070104232224.GA12756@nan92-1-81-57-214-146.fbx.proxad.net","threadId":"6225","inReplyTo":null,"subject":"[BUG] stgit: unexpected \"unknown user details\" on refresh","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-01-04T23:22:24Z","receivedAt":"2007-01-04T23:22:24Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Hi Catalin,\n\nHere is an error I just got when refreshing.  The refresh did occur, but\nthe error is annoying and may hide something:\n\ndwitch@gandelf:/export/work/yann/git/stgit$ ./stg ref contrib/stg-whatchanged\nChecking for changes in the working directory... done\nRefreshing patch \"whatchanged\"...stg ref: unknown user details\n\ndwitch@gandelf:/export/work/yann/git/stgit$ echo $?\n2\n\n\nWhen using \"refresh -p\", we can see the error occurs before rewinding to\ncurrent patch:\n\ndwitch@gandelf:/export/work/yann/git/stgit$ ./stg ref -p show-old\nChecking for changes in the working directory... done\nPopping patch \"whatchanged\"... done\nRefreshing patch \"show-old\"...stg ref: unknown user details\n\ndwitch@gandelf:/export/work/yann/git/stgit$ stg top\nshow-old\n"},{"id":"30864","messageId":"b0943d9e0701050107s21ec8527ud89425df4772998@mail.gmail.com","threadId":"6225","inReplyTo":"20070104232224.GA12756@nan92-1-81-57-214-146.fbx.proxad.net","subject":"Re: [BUG] stgit: unexpected \"unknown user details\" on refresh","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2007-01-05T09:07:51Z","receivedAt":"2007-01-05T09:07:51Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 04/01/07, Yann Dirson <ydirson@altern.org> wrote:\n> Here is an error I just got when refreshing.  The refresh did occur, but\n> the error is annoying and may hide something:\n>\n> dwitch@gandelf:/export/work/yann/git/stgit$ ./stg ref contrib/stg-whatchanged\n> Checking for changes in the working directory... done\n> Refreshing patch \"whatchanged\"...stg ref: unknown user details\n\nI changed StGIT to use the same configuration file as GIT and it\ncannot find the user information. To remove the error:\n\n  git repo-config --global user.name Yann Dirson\n  git repo-config --global user.email ydirson@altern.org\n\nIt probably tries to set the author information for the patch and\nGIT_AUTH* or GIT_COMMIT* aren't set but it would be probably useful to\nget the full backtrace of this error (at the end of the stgit/main.py\nfile, just add a \"raise\" before sys.exit(2)).\n\n-- \nCatalin\n"},{"id":"30913","messageId":"20070105222944.GA6179@nan92-1-81-57-214-146.fbx.proxad.net","threadId":"6225","inReplyTo":"b0943d9e0701050107s21ec8527ud89425df4772998@mail.gmail.com","subject":"Re: [BUG] stgit: unexpected \"unknown user details\" on refresh","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-01-05T22:29:44Z","receivedAt":"2007-01-05T22:29:44Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"On Fri, Jan 05, 2007 at 09:07:51AM +0000, Catalin Marinas wrote:\n> It probably tries to set the author information for the patch and\n> GIT_AUTH* or GIT_COMMIT* aren't set but it would be probably useful to\n> get the full backtrace of this error (at the end of the stgit/main.py\n> file, just add a \"raise\" before sys.exit(2)).\n\nEmail vars are set, name is taken (by git) from GECOS.  Apparently\nStGIT does not use the latter.  It would surely be more user-friendly\nto use it, as much for providing a (hopefully) sane default as to get\na behaviour consistent with GIT.\n\n$ env|grep GIT\nGIT_COMMITTER_EMAIL=ydirson@altern.org\nGIT_AUTHOR_EMAIL=ydirson@altern.org\n\nAs you expected:\n\nTraceback (most recent call last):\n  File \"./stg\", line 43, in ?\n    main()\n  File \"/export/work/yann/git/stgit/stgit/main.py\", line 262, in main\n    command.func(parser, options, args)\n  File \"/export/work/yann/git/stgit/stgit/commands/refresh.py\", line 145, in func\n    backup = True, sign_str = sign_str)\n  File \"/export/work/yann/git/stgit/stgit/stack.py\", line 674, in refresh_patch\n    patch.set_authdate(author_date)\n  File \"/export/work/yann/git/stgit/stgit/stack.py\", line 265, in set_authdate\n    self._set_field('authdate', date or git.author().date)\n  File \"/export/work/yann/git/stgit/stgit/git.py\", line 475, in author\n    __author = user()\n  File \"/export/work/yann/git/stgit/stgit/git.py\", line 457, in user\n    raise GitException, 'unknown user details'\nstgit.git.GitException: unknown user details\n\nBest regards,\n-- \nYann.\n"}]}