fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
450 stars 10 forks source link

Parameter command has wrong path for Repository (File save, Open Folder) #2228

Closed HopefulDavid closed 1 month ago

HopefulDavid commented 1 month ago

Hello, parameter command has issue to get folder path or create a new file. Steps to reproduce:

  1. Custom command image
  2. Dialogue popup image
  3. image

Please check it and let me to know.

Thank you :)

DanPristupov commented 1 month ago

Try to wrap paths using commas: folderPath="$1{path}", etc

P.S. Check the exact command in the Activity Manager (click on the repository name on the toolbar). It might be helpful in many cases

HopefulDavid commented 1 month ago

You're right, thank you. :relieved:

It's much easier through activity manager thanks for the tip.👍

DanPristupov commented 1 month ago

I think the following works properly:

folderPath="$1{path}"
fileName="$2{text}"

echo $folderPath
echo $fileName

git init --bare "$folderPath\fileName.git"