mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 15:23:54 +01:00
list-cvs-files.sh: Make it work in git subdirectory, too
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8cb63407c4
commit
51e512859a
1 changed files with 5 additions and 4 deletions
|
|
@ -43,12 +43,13 @@ list_dirents()
|
||||||
{
|
{
|
||||||
if [ -d $1/CVS ]; then
|
if [ -d $1/CVS ]; then
|
||||||
list_dirents_cvs $1
|
list_dirents_cvs $1
|
||||||
elif [ -d $1/.git ]; then
|
return
|
||||||
list_dirents_git $1
|
fi
|
||||||
else
|
git status >/dev/null 2>&1 || {
|
||||||
echo "failed to list versioned files in $1: no VCS" >&2
|
echo "failed to list versioned files in $1: no VCS" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
}
|
||||||
|
list_dirents_git $1
|
||||||
}
|
}
|
||||||
|
|
||||||
set -- `getopt f "$@"`
|
set -- `getopt f "$@"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue