summaryrefslogtreecommitdiff
path: root/pbs-package-new
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 17:18:36 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-19 17:18:36 -0400
commit699135c584dfab6473568d470f36b8dddad4a416 (patch)
treeb8a8054fc4f87053c9477d8b73af2474715d8233 /pbs-package-new
parenta459ff97011ed0cb555badf02b17a02e2325b06c (diff)
add nescessary git magic to pbs-package-new
Diffstat (limited to 'pbs-package-new')
-rwxr-xr-xpbs-package-new6
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 "$@"