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

incorrect {sRemotePathFromUrl} parameter evaluation #6567

Closed
jeroendv opened this issue May 15, 2019 · 0 comments · Fixed by #6573
Closed

incorrect {sRemotePathFromUrl} parameter evaluation #6567

jeroendv opened this issue May 15, 2019 · 0 comments · Fixed by #6573
Assignees
Milestone

Comments

@jeroendv
Copy link

Current behaviour

the script {sRemotePathFromUrl} variable evaluation is incorrect

sRemote=origin
sRemoteUrl=git@gitlab-be.mtrs.intl:ASW/Focus_gitlabCI_test.git
sRemotePathFromUrl=git@gitlab-be.mtrs.intl:ASW/Focus_gitlabCI_test.git

Expected behaviour

{sRemotePathFromUrl} should evaluate to /ASW/Focus_gitlabCI_test similar to {cDefaultRemotePathFromUrl}

cDefaultRemote=origin
cDefaultRemoteUrl=git@gitlab-be.mtrs.intl:ASW/Focus_gitlabCI_test.git
cDefaultRemotePathFromUrl=/ASW/Focus_gitlabCI_test

Steps to reproduce

create a script

command = echo
arguments = cDefaultRemotePathFromUrl = {cDefaultRemotePathFromUrl}
sRemotePathFromUrl = {sRemotePathFromUrl}

create a branch,check it out and push it to your upstream repo origin

select your branch commit and select the script from the context menu

Did this work in previous version of GitExtensions

this worked as expected in V3.0.2

Environment

  • Git Extensions 3.1.0.5877
  • Build bb1687f
  • Git 2.20.1.windows.1
  • Microsoft Windows NT 10.0.17763.0
  • .NET Framework 4.7.3362.0
  • DPI 96dpi (no scaling)

Diagnostics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants