Skip to content

Commit 0c6bda0

Browse files
author
Jared Murrell
authored
ignore .git folders
it turns out, some folks have .git in their repos, and this falsely identifies those as submodules. Let's remove those entries and not present the user with the option to migrate them
1 parent 1bc899c commit 0c6bda0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

_functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ function _discover_submodules()
200200
echo "Discovering potential submodule candidates..."
201201
# Get the potential list of submodules, with branches, tags and trunk
202202
svn -R list ${REPO_URL} ${SVN_OPTIONS}|grep -E '(/trunk/$|/branches/$|/tags/$)' > /tmp/submodules.txt
203+
# it turns out, some folks have .git in their repos, and this falsely
204+
# identifies those as submodules. Let's remove those entries and not
205+
# present the user with the option to migrate them
206+
sed -i 's/\/.git\//d' /tmp/submodules.txt
203207
# Remove empty "trunk", "tags" and "branches" from the list of potentials
204208
for DIR in $(cat /tmp/submodules.txt);
205209
do

0 commit comments

Comments
 (0)