mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
b7b5dbd3c4
This change is needed for cases when user does not put editmergeps.bat directly into PATH, but rather uses 'merge-tools.editmergeps.executable' config option to provide a full path to editmergeps.bat. In such cases, editmergeps.ps1 cannot be run simply by name, it needs a full path. In BATCH file %~dp0 stands for the directory in which the original file is located.
3 lines
102 B
Batchfile
3 lines
102 B
Batchfile
@echo off
|
|
powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%~dp0\editmergeps.ps1' %*"
|