intersystems / intersystems/git-source-control

Checkout branch should quit early if uncommitted changes detected.

Open
#934 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
ObjectScript
Stars
22
Forks
14
Avg merge
1d 9h
Merged PRs (30d)
5

Description

When checking out an existing branch, if there are uncommitted changes, then git will not complete the checkout. However, the pull handler will still proceed with refreshing Iris based on the `git diff`, which is now inaccurate (because it can potentially try to load classes that don't exist in the checkout)

The change needs to take place somewhere within `RunGitCommandWithInput()` before `SyncIrisWithRepoThroughDiff()` is called. I think I have a solution, but I need to run a few more tests first.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.