diff options
-rwxr-xr-x | scripts/combo-layer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index f028098cbb..09a53a27e4 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -380,7 +380,7 @@ tail -c +18 $tmpname | head -c -4 | |||
380 | if not parent: | 380 | if not parent: |
381 | parent = '.' | 381 | parent = '.' |
382 | # May run outside of the current directory, so do not assume that .git exists. | 382 | # May run outside of the current directory, so do not assume that .git exists. |
383 | filter_branch.extend(['--tree-filter', 'mkdir -p .git/tmptree && mv $(ls -1 -a | grep -v -e ^.git$ -e ^.$ -e ^..$) .git/tmptree && mkdir -p %s && mv .git/tmptree %s' % (parent, dest_dir)]) | 383 | filter_branch.extend(['--tree-filter', 'mkdir -p .git/tmptree && find . -mindepth 1 -maxdepth 1 ! -name .git -print0 | xargs -0 -I SOURCE mv SOURCE .git/tmptree && mkdir -p %s && mv .git/tmptree %s' % (parent, dest_dir)]) |
384 | filter_branch.append('HEAD') | 384 | filter_branch.append('HEAD') |
385 | runcmd(filter_branch) | 385 | runcmd(filter_branch) |
386 | runcmd('git update-ref -d refs/original/refs/heads/%s' % name) | 386 | runcmd('git update-ref -d refs/original/refs/heads/%s' % name) |