New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 746401 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Windows instructions on https://www.googlesource.com/new-password are wrong

Project Member Reported by dougt@chromium.org, Jul 19 2017

Issue description

The instructions to add credentials to your .gitcookies file on windows is wrong and doesn't work in CMD or powershell.

What is listed is:

git config --global http.cookiefile "%USERPROFILE%\.gitcookies"
powershell -noprofile -nologo -command Write-Output "chromium.googlesource.com`tFALSE`t/`tTRUE`t2147483647`to`tgit-dougt.chromium.org=1/XXXXXXX
chromium-review.googlesource.com`tFALSE`t/`tTRUE`t2147483647`to`tgit-dougt.chromium.org=1/XXXXXXX" >>"%USERPROFILE%\.gitcookies"


This will fail because of the line break between the two entries (one for chromium* and the other for chromium-review).

My suggestion is to use TWO separate powershell commands which isn't much slower, it's much clearer what's happening, and will avoid the terminal confusing the line break.


git config --global http.cookiefile "%USERPROFILE%\.gitcookies"

powershell -noprofile -nologo -command Write-Output "chromium.googlesource.com`tFALSE`t/`tTRUE`t2147483647`to`tgit-dougt.chromium.org=1/XXXXXXX" >>"%USERPROFILE%\.gitcookies"

powershell -noprofile -nologo -command Write-Output 
chromium-review.googlesource.com`tFALSE`t/`tTRUE`t2147483647`to`tgit-dougt.chromium.org=1/XXXXXXX" >>"%USERPROFILE%\.gitcookies"

I hope this helps!
 
Cc: aga...@chromium.org
Components: -Infra>Git Infra>SDK
I think this needs to be redirected to the googlesource.com folks, but I'm not sure who owns this at this point.

The instructions in question are the ones at https://www.googlesource.com/new-password I think

Comment 2 by aga...@chromium.org, Jul 19 2017

Cc: -aga...@chromium.org sop@google.com
Components: -Infra>SDK Infra>Codereview>Gerrit
Labels: -Pri-3 Pri-2
Owner: aga...@chromium.org
Status: ExternalDependency (was: Untriaged)
Thanks, forwarding to the folks responsible for this page here: b/63853394
Also it looks like running these commands from powershell instead of cmd causes them to not work either.

Comment 4 by aga...@chromium.org, Sep 11 2017

Status: Fixed (was: ExternalDependency)
Internal bug has been fixed.

Sign in to add a comment