mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 21:13:56 +01:00
pgit.sh: Another attempt on guessing project directory
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c17142388c
commit
1481fd2df8
1 changed files with 4 additions and 6 deletions
|
|
@ -25,12 +25,10 @@ config()
|
||||||
{
|
{
|
||||||
# guess pdir
|
# guess pdir
|
||||||
pdir=`pwd`
|
pdir=`pwd`
|
||||||
if [ `ls -d $pdir/*/.git 2>/dev/null | wc -w` -lt 3 ]; then
|
while [ `cat $pdir/CVS/Repository 2>/dev/null` != proj ]; do
|
||||||
while [ `basename $pdir` != proj ]; do
|
[ "$pdir" = / ] && fatal "didn't find \"proj\" in directory components"
|
||||||
[ "$pdir" = / ] && fatal "didn't find \"proj\" in directory components"
|
pdir=`dirname $pdir`
|
||||||
pdir=`dirname $pdir`
|
done
|
||||||
done
|
|
||||||
fi
|
|
||||||
pdirs=`(cd $pdir; ls -d */.git | sed 's%/.git%%')`
|
pdirs=`(cd $pdir; ls -d */.git | sed 's%/.git%%')`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue