Merge branch 'next-minor' into develop

This commit is contained in:
Dennis Schubert 2018-02-10 16:13:44 +01:00
commit 049db8626d
No known key found for this signature in database
GPG key ID: 5A0304BEA7966D7E
2 changed files with 14 additions and 9 deletions

View file

@ -9,6 +9,7 @@
# 0.7.4.0
## Refactor
* Don't print a warning when starting the server outside a Git repo [#7712](https://github.com/diaspora/diaspora/pull/7712)
## Bug fixes

View file

@ -63,16 +63,20 @@ fi
command -v git > /dev/null 2>&1
if [ $? -eq 0 ]; then
# Check if git merge is in progress
if [ -f .git/MERGE_MODE ]; then
fatal "A git merge is in progress!"
fi
# Check if detached head state
git_branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
if [ -z "$git_branch_name" ];
# Check if we're in a repository, before doing any verification.
if git status > /dev/null 2>&1;
then
warning "You are in detached HEAD state!"
# Check if git merge is in progress
if [ -f .git/MERGE_MODE ]; then
fatal "A git merge is in progress!"
fi
# Check if detached head state
git_branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
if [ -z "$git_branch_name" ];
then
warning "You are in detached HEAD state!"
fi
fi
fi