Commit a1bc8717 authored by Vincent Driessen's avatar Vincent Driessen

Implemented the gitflow_check_clean_working_tree() check for dirty directories.

parent afee9fdf
...@@ -24,8 +24,9 @@ warn() { echo "$@" >&2; } ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment