Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Throws on git remote call outside git repo #6586

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented May 17, 2019

It looks like there was a change in wording after git 2.16 that changed from "fatal: Not a git..." to "fatal: not a git...".

The existing parser expected the warning to be in the lower case, and thus failed for earlier versions of git.
image

Fixes #6562
Closes #6563
Closes #6565
Closes #6570
Closes #6571
Closes #6574
Closes #6577
Closes #6571

Proposed changes

  • The fix makes the check case insensitive.

Test methodology

  • downgraded to git 2.16.4
  • manual repro
  • unit tests

Test environment(s)

  • Git Extensions 3.1.1
  • Build bb1687f (Dirty)
  • Git 2.16.1.windows.4
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3324.0
  • DPI 144dpi (150% scaling)

✒️ I contribute this code under The Developer Certificate of Origin.

It looks like there was a change in wording after git 2.16 that
changed from "fatal: Not a git..." to "fatal: not a git...".

The existing parser expected the warning to be in the lower case, and
thus failed for earlier versions of git.

The fix makes the check case insensitive.

Fixes gitextensions#6562
Closes gitextensions#6563
Closes gitextensions#6565
Closes gitextensions#6570
Closes gitextensions#6571
Closes gitextensions#6574
Closes gitextensions#6577
Closes gitextensions#6571
@ghost ghost assigned RussKie May 17, 2019
@ghost ghost added the status: ready label May 17, 2019
@RussKie RussKie added this to the 3.2.0 milestone May 17, 2019
@codecov
Copy link

codecov bot commented May 17, 2019

Codecov Report

Merging #6586 into master will increase coverage by 0.08%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #6586      +/-   ##
==========================================
+ Coverage   47.09%   47.18%   +0.08%     
==========================================
  Files         698      698              
  Lines       52622    52639      +17     
  Branches     6906     6907       +1     
==========================================
+ Hits        24783    24838      +55     
+ Misses      26517    26460      -57     
- Partials     1322     1341      +19
Flag Coverage Δ
#production 36.51% <100%> (+0.08%) ⬆️
#tests 97.61% <100%> (+0.02%) ⬆️

@RussKie RussKie merged commit a41d418 into gitextensions:master May 18, 2019
@RussKie RussKie deleted the fix_6562_Throw_on_git_remote_call_outside_git_repo branch May 18, 2019 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment