Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/mix/lib/mix/tasks/release.init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ defmodule Mix.Tasks.Release.Init do
setlocal enabledelayedexpansion
pushd .
%~d0
cd "%~dp0\.."
set RELEASE_ROOT=%cd%
popd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been reading the docs and it seems this would also work:

pushd "%~dp0\.."
set RELEASE_ROOT=%cd%
popd

Because, opposite to cd, pushd changes the path. can you please give it a try too? ❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it works well too.
And it seems little bit cleaner than playing with old "dos" command.

I'll do another pull request

Expand Down
Loading