diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 17:18:36 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-03-19 17:18:36 -0400 |
commit | 699135c584dfab6473568d470f36b8dddad4a416 (patch) | |
tree | b8a8054fc4f87053c9477d8b73af2474715d8233 | |
parent | a459ff97011ed0cb555badf02b17a02e2325b06c (diff) |
add nescessary git magic to pbs-package-new
-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 "$@" |