File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
unison-cli/src/Unison/Codebase/Editor/HandleInput Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ import Data.Semialign (zipWith)
24
24
import Data.Set qualified as Set
25
25
import Data.Text qualified as Text
26
26
import Data.Text.IO qualified as Text
27
- import System.Directory (canonicalizePath , getTemporaryDirectory , removeFile )
27
+ import System.Directory (canonicalizePath , getCurrentDirectory , getTemporaryDirectory , removeFile )
28
28
import System.Environment (lookupEnv )
29
29
import System.FilePath ((</>) )
30
30
import System.IO.Temp qualified as Temporary
31
+ import System.OsPath qualified
31
32
import System.Process qualified as Process
32
33
import Text.ANSI qualified as Text
33
34
import Text.Builder qualified
@@ -418,7 +419,16 @@ doMerge info = do
418
419
alice = aliceFilenameSlug <> " .u" ,
419
420
bob = bobFilenameSlug <> " .u"
420
421
}
421
- let mergedFilename = Text.Builder. run (aliceFilenameSlug <> " -" <> bobFilenameSlug <> " -merged.u" )
422
+ mergedFilename <- do
423
+ cwd <- liftIO getCurrentDirectory
424
+ pure $
425
+ Text.Builder. run $
426
+ Text.Builder. string cwd
427
+ <> Text.Builder. char (System.OsPath. toChar System.OsPath. pathSeparator)
428
+ <> aliceFilenameSlug
429
+ <> " -"
430
+ <> bobFilenameSlug
431
+ <> " -merged.u"
422
432
let mergetool =
423
433
mergetool0
424
434
& Text. pack
You can’t perform that action at this time.
0 commit comments