Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125332
pull-from-upstream
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
379 B
Subscribers
None
pull-from-upstream
View Options
#!/bin/bash
set
-e
if
[
-d
.git/refs/remotes/upstream
]
;
then
git
fetch
upstream
--tags
oldbranch
=
$(
git
rev-parse
--abbrev-ref
HEAD
)
if
[
"
$oldbranch
"
!
=
"master"
]
;
then
git
checkout
master
fi
git
merge
upstream/master
git
push
origin
master:master
--tags
if
[
"
$oldbranch
"
!
=
"master"
]
;
then
git
checkout
$oldbranch
fi
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Jun 21, 8:32 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3361768
Attached To
rSENV Puppet Environment
Event Timeline
Log In to Comment