I've been using the ./setup.sh in lots of projects for my team members to faceroll all day long.
test on git master
> ./setup.sh
π Installing/Updating ASDF
π Updating asdf...
HEAD is now at ccdd47d chore(master): release 0.14.0 (#1641)
Updated asdf to release v0.14.0
π Installing ASDF Plugin Manager 1.3.1
Plugin named asdf-plugin-manager already added
Location of asdf-plugin-manager plugin: /home/zenobius/.asdf/plugins/asdf-plugin-manager
Updating asdf-plugin-manager to v1.3.1
warning: refname 'v1.3.1' is ambiguous.
warning: refname 'v1.3.1' is ambiguous.
Already on 'v1.3.1'
asdf-plugin-manager 1.3.1 is already installed
π Installing .plugin-versions
[INFO] Adding: asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git 6fc3faa
Plugin named asdf-plugin-manager already added
error: Your local changes to the following files would be overwritten by checkout:
README.md
Please commit your changes or stash them before you switch branches.
Aborting
Steps to reproduce
git clone git@github.com:airtonix/broken-asdf-plugin-manager-1-3-1.git
cd broken-asdf-plugin-manager-1-3-1
./setup.sh
Expected behavior
don't run git in my repo
Additional context
it's most likely checkout_plugin_ref causing the issue
Describe the bug
example repo: https://github.com/airtonix/broken-asdf-plugin-manager-1-3-1
I've been using the
./setup.sh
in lots of projects for my team members to faceroll all day long.Steps to reproduce
Expected behavior
don't run git in my repo
Additional context
it's most likely
checkout_plugin_ref
causing the issue