vscode-git-merger icon indicating copy to clipboard operation
vscode-git-merger copied to clipboard

Getting error when using "Merge from" command

Open sir-captainmorgan21 opened this issue 6 years ago • 6 comments

image

I type the "Merge from" command and click enter. I get the above error.

sir-captainmorgan21 avatar Mar 28 '18 14:03 sir-captainmorgan21

Thanks for opening the issue. Can you please elaborate? What is you OS & VSCode version? When merging through git cli you have no errors?

shaharkazaz avatar Mar 28 '18 14:03 shaharkazaz

OS - macOS High Serria VSCode Version - 1.21.1 Right I can run the command through command line I think it is trying to run the command in the directory that contains all of my sub-directories that actually contain the repos. So when I "open" in VS Code I open my "Development" directory that had folders for each repo inside. When I run the git for-each-ref in the command line inside the "Development" directory, I get the same error your extension is getting.

sir-captainmorgan21 avatar Mar 28 '18 14:03 sir-captainmorgan21

Here is a screenshot of my directories so you can get an idea.

image

sir-captainmorgan21 avatar Mar 28 '18 14:03 sir-captainmorgan21

Thanks for the info ! Really gave me the idea for the problem. I will look at it this weekend and try to find the best solution for it. Maybe a drop-down menu with the available repos. Thanks again for using my extension and helping me keep it up and running 👍

shaharkazaz avatar Mar 28 '18 14:03 shaharkazaz

Absolutely! A drop down for which repo would be nice (If you working directory has multiple sub directories with their respective repos). Would a work around for now be to open inside the specific directory I want to perform the merge in?

sir-captainmorgan21 avatar Mar 28 '18 15:03 sir-captainmorgan21

I just tested and confirmed that is a good work around for now (If anyone else comes across this issue)

sir-captainmorgan21 avatar Mar 28 '18 15:03 sir-captainmorgan21