Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
88d1d37b
Commit
88d1d37b
authored
Jul 14, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkout_bpbranch: fix initial fetching branch
parent
8bd0e67a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
branch
share/eterbuild/functions/branch
+5
-1
No files found.
share/eterbuild/functions/branch
View file @
88d1d37b
...
...
@@ -62,6 +62,10 @@ checkout_bpbranch()
# Create branch if not exist yet
if
is_exist_branch
$USEBRANCH
;
then
docmd git checkout
$USEBRANCH
||
fatal
"Can't checkout branch
$USEBRANCH
. Use
$BPSPEC
manually or remove it."
if
!
git branch
-a
|
grep
-q
"remotes/
$PGEAR
/"
;
then
docmd gremote
$GIRARHOST
-o
docmd git fetch
$PGEAR
$USEBRANCH
fi
# if we successful with gear
if
git branch
-a
|
grep
-q
"remotes/
$PGEAR
/
$USEBRANCH
"
;
then
docmd git fetch
$PGEAR
$USEBRANCH
...
...
@@ -72,7 +76,7 @@ checkout_bpbranch()
if
!
git branch
-a
|
grep
-q
"remotes/
$PGEAR
/
$USEBRANCH
"
;
then
# if we have no fetched branch
docmd gremote
$GIRARHOST
-o
docmd git fetch
$PGEAR
docmd git fetch
$PGEAR
$USEBRANCH
fi
# if we successful with gear
if
git branch
-a
|
grep
-q
"remotes/
$PGEAR
/
$USEBRANCH
"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment