You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After updating to 2.0.0 cannot push to remote repo anymore #1998
What does which git point to? Is it some wrapper by chance? This output on all those error lines seems very suspicious: line 3: keyword expected; got api.heroku.com. What does GIT_TRACE=1 git lfs env show?
@JanGorman now what is up with that netrc file? What were the values separated by in line 3? Spaces, tabs, etc? Was it working properly, or just being ignored? I'm asking so I can look into updating the netrc package.
@technoweenie Separated by spaces. Line 3 was one of those crufty ones, haven't used that in like 50 years and so I can't say if it would actually properly have understood that machine.
The second reference to api.heroku was working fine as are others in the file
I had two multi-line machine entries in file "_netrc" once I deleted the second one and reformatted did a
git lfs install --force
The problem went away.
My file looked like this when it failed to work.
machine api.heroku.com
login {user}
password
machine code.heroku.com
login {user}
password
Changed to a single line to force install like this
machine api.heroku.com login {user} password
After I got it installed added the second line. I was using different server names; but easier to copy the above person info. I do NOT keep a password in my netrc file.
Found the cause of this issue for me; my "_netrc" had CRLF instead of LF.
After reformatting file the error changed; once I changed to only a single with just one machine and added a password git-lfs worked great.
Activity
technoweenie commentedon Mar 3, 2017
Can you share the contents of
git lfs envandgit config --list? That should give me enough information to replicate the issue.JanGorman commentedon Mar 3, 2017
Yes of course:
git lfs envyieldsand
git config --list:JanGorman commentedon Mar 3, 2017
Note that after downgrading to git-lfs 1.5.6
git lsf envprints outtechnoweenie commentedon Mar 3, 2017
I don't see any remotes. What does
git remote -vshow?JanGorman commentedon Mar 4, 2017
that gives me
and ran
git lsf envin the working dir again, which givesand additional output from
git config --listin the same dir:technoweenie commentedon Mar 5, 2017
I don't see anything in there that would cause problems. I've confirmed LFS 2.0 works with an SSH remote in the same format:
What does
which gitpoint to? Is it some wrapper by chance? This output on all those error lines seems very suspicious:line 3: keyword expected; got api.heroku.com. What doesGIT_TRACE=1 git lfs envshow?javabrett commentedon Mar 5, 2017
go-netrcis having trouble understanding your~/.netrcfile, perhaps post-heroku login. Can you describe its contents, redacted as necessary?JanGorman commentedon Mar 5, 2017
wow, some cruft in .netrc:
and yes, line 3 is a mess. Let me just clean up that file and update update git-lfs again.
That was it. Thanks @technoweenie and @javabrett for all your help.
technoweenie commentedon Mar 6, 2017
Nice catch @javabrett.
@JanGorman now what is up with that netrc file? What were the values separated by in line 3? Spaces, tabs, etc? Was it working properly, or just being ignored? I'm asking so I can look into updating the netrc package.
JanGorman commentedon Mar 6, 2017
@technoweenie Separated by spaces. Line 3 was one of those crufty ones, haven't used that in like 50 years and so I can't say if it would actually properly have understood that machine.
The second reference to
api.herokuwas working fine as are others in the filestahta01 commentedon Apr 8, 2017
Thank you for this post.
I had a similar issue on windows 10.
I had two multi-line machine entries in file "_netrc" once I deleted the second one and reformatted did a
git lfs install --force
The problem went away.
My file looked like this when it failed to work.
machine api.heroku.com
login {user}
password
machine code.heroku.com
login {user}
password
Changed to a single line to force install like this
machine api.heroku.com login {user} password
After I got it installed added the second line. I was using different server names; but easier to copy the above person info. I do NOT keep a password in my netrc file.
machine api.heroku.com login {user} password
machine code.heroku.com login {user} password
Tim S.
stahta01 commentedon Apr 8, 2017
Found the cause of this issue for me; my "_netrc" had CRLF instead of LF.
After reformatting file the error changed; once I changed to only a single with just one machine and added a password git-lfs worked great.
Tim S.