Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wildan Mubarok
cookbook
Commits
1f7128c4
Commit
1f7128c4
authored
7 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add upstream link if necessary
parent
211d5c2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cook.sh
+9
-1
9 additions, 1 deletion
cook.sh
with
9 additions
and
1 deletion
cook.sh
+
9
−
1
View file @
1f7128c4
...
@@ -87,8 +87,16 @@ function op {
...
@@ -87,8 +87,16 @@ function op {
fi
fi
pushd source
>
/dev/null
pushd source
>
/dev/null
git remote set-url origin
"
$GIT
"
git fetch origin
if
[
-n
"
$GIT_UPSTREAM
"
]
then
git remote set-url upstream
"
$GIT_UPSTREAM
"
&> /dev/null
||
git remote add upstream
"
$GIT_UPSTREAM
"
git fetch upstream
fi
git pull
git pull
git submodule
sync
git submodule
sync
--recursive
git submodule update
--init
--recursive
git submodule update
--init
--recursive
popd
>
/dev/null
popd
>
/dev/null
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment