Commit e99f2d09 authored by Vitaly Lipatov's avatar Vitaly Lipatov

check for .gear in parent dir, not .git

parent be26d2cc
......@@ -21,13 +21,14 @@ DEFAULTARCH=i586
NICE="nice"
RPMBUILD=rpmbuild
# TODO: check for .gear, not .git?
is_git()
{
local DIR=$1
[ -n "$DIR" ] && [ -d "$DIR/.git" ] && return 0
[ -d ".git" ] && return 0
# hack for support spec in some subdir
[ -d "../.git" ] && return 0
[ -d "../.gear" ] && return 0
return 1
}
......
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