Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
fcd9f1bd
Commit
fcd9f1bd
authored
10 years ago
by
Richard Hartmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature--improve_clone_errors'
parents
5432ea13
589f2baa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
vcsh
+4
-3
4 additions, 3 deletions
vcsh
with
4 additions
and
3 deletions
vcsh
+
4
−
3
View file @
fcd9f1bd
...
@@ -149,9 +149,10 @@ clone() {
...
@@ -149,9 +149,10 @@ clone() {
git remote add origin
"
$GIT_REMOTE
"
git remote add origin
"
$GIT_REMOTE
"
git config branch.master.remote origin
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git config branch.master.merge refs/heads/master
if
[
$(
git ls-remote origin master 2> /dev/null |
wc
-l
)
-lt
1
]
;
then
VCSH_CLONE_ERROR
=
$(
git ls-remote origin master 2>&1
)
info
"remote is empty, not merging anything"
if
[
-n
"
$VCSH_CLONE_ERROR
"
]
;
then
exit
rm
-rf
"
$GIT_DIR
"
fatal
"
$VCSH_CLONE_ERROR
"
1
fi
fi
git fetch
git fetch
hook pre-merge
hook pre-merge
...
...
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