mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
去除多余文件
This commit is contained in:
parent
5887ce642d
commit
1f698a3ca2
30
bin/split.sh
30
bin/split.sh
@ -1,30 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
BASEPATH=$(cd `dirname $0`; cd ../plugin/; pwd)
|
||||
REPOS=$@
|
||||
|
||||
function split()
|
||||
{
|
||||
SHA1=`./bin/splitsh-lite --prefix=$1`
|
||||
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f
|
||||
}
|
||||
|
||||
function remote()
|
||||
{
|
||||
git remote add $1 $2 || true
|
||||
}
|
||||
|
||||
git pull origin $CURRENT_BRANCH
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
REPOS=$(ls $BASEPATH)
|
||||
fi
|
||||
|
||||
for REPO in $REPOS ; do
|
||||
remote $REPO git@github.com:zoujingli/$REPO.git
|
||||
split "plugin/$REPO" $REPO
|
||||
done
|
||||
BIN
bin/splitsh-lite
BIN
bin/splitsh-lite
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user