diff options
-rwxr-xr-x | pbs-package-new | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pbs-package-new b/pbs-package-new index a99fd30..42a62cb 100755 --- a/pbs-package-new +++ b/pbs-package-new @@ -30,8 +30,14 @@ main() { cdto_pbs-root git submodule add ./ "${dest}" cd "${dest}" + git checkout --orphan "packages/${package}" + git remote set-branches origin "packages/${package}" + git branch -D master + git rm -rf . + touch .pbs-package + git add .pbs-package } main "$@" |