Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F52699523
git-newbug
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
434 B
Referenced Files
None
Subscribers
None
git-newbug
View Options
#!/bin/sh
if
[
$#
-eq
0
]
then
echo
"Usage:
$(
basename
"
$0
"
)
<name of the branch to create>"
exit
1
fi
BRANCH
=
$1
REPO
=
$(
git
rev-parse
--show-toplevel
)
REPO_RETCODE
=
$?
if
[
$REPO_RETCODE
-ne
0
]
then
exit
$REPO_RETCODE
fi
;
REPO
=
$(
basename
"
$REPO
"
)
if
[
"
$REPO
"
=
"puppet"
]
then
MASTER
=
production
else
MASTER
=
master
fi
git
checkout
$MASTER
git
fetch
--all
git
pull
git
pull
origin
$MASTER
git
checkout
-b
"
$BRANCH
"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Tue, Oct 6, 02:32 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4133813
Default Alt Text
git-newbug (434 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment