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
593abc77
Commit
593abc77
authored
Dec 01, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpush: use remote alias, not direct path
parent
ddf63a51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gpush
bin/gpush
+7
-5
No files found.
bin/gpush
View file @
593abc77
...
...
@@ -99,15 +99,17 @@ push_to_remote()
local
GHOST
=
$1
local
TEXTTAG
=
[
-n
"
$TAGSALL$PUSHALL
"
]
&&
TEXTTAG
=
"(with all tags)"
# FIXME: почему тут прибито packages, а мы не используем remote alias, если он есть?
# Видимо, стоит только через alias, он же всё равно создаётся, и мы всё равно его используем, чтобы определить, куда публиковать
echo
echo
"** Push
$TEXTBRANCH
from
$PROJECTNAME
.git to
$GHOST
:packages/
$PROJECTNAME
.git
$TEXTTAG
"
echo
"** Push
$TEXTBRANCH
from
$PROJECTNAME
.git to
$GHOST
$TEXTTAG
"
# FIXME: push with one command
if
[
-n
"
$PUSHALL
"
]
;
then
git push
$PUSHALL
$PUSHFORCE
$GHOST
:packages/
$PROJECTNAME
.git
||
return
[
-z
"
$TAGSALL
"
]
||
git push
--tags
$GHOST
:packages/
$PROJECTNAME
.git
git push
$PUSHALL
$PUSHFORCE
$GHOST
||
return
[
-z
"
$TAGSALL
"
]
||
git push
--tags
$GHOST
else
git push
$PUSHALL
$PUSHFORCE
$GHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
||
return
[
-z
"
$TAGSALL
"
]
||
git push
--tags
$GHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
$PUSHALL
$PUSHFORCE
$GHOST
$TARGETBRANCH
||
return
[
-z
"
$TAGSALL
"
]
||
git push
--tags
$GHOST
$TARGETBRANCH
fi
}
...
...
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