Implemented the gitflow_check_clean_working_tree() check for dirty directories.
This commit is contained in:
parent
afee9fdfed
commit
a1bc8717e2
1 changed files with 3 additions and 2 deletions
|
@ -24,8 +24,9 @@ warn() { echo "$@" >&2; }
|
||||||
die() { warn "$@"; exit 1; }
|
die() { warn "$@"; exit 1; }
|
||||||
|
|
||||||
gitflow_check_clean_working_tree() {
|
gitflow_check_clean_working_tree() {
|
||||||
# TODO: Implement this
|
if [ "$(git status 2> /dev/null | tail -n1)" != "nothing to commit (working directory clean)" ]; then
|
||||||
echo "TODO"
|
die "Working directory is dirty. Only use gitflow in clean working directories for your own safety."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
gitflow_require_local_branch() {
|
gitflow_require_local_branch() {
|
||||||
|
|
Loading…
Reference in a new issue