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
e37c21ac
Commit
e37c21ac
authored
Jul 10, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpush: improve: push master by default, add -a|--all support
parent
ac1b00f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gpush
bin/gpush
+10
-2
No files found.
bin/gpush
View file @
e37c21ac
...
...
@@ -7,13 +7,20 @@
if
[
"
$1
"
=
"-h"
]
;
then
echo
"gpush - publish current project repo to
$GIRARHOST
"
echo
"Use: gpush [project name] [target branch]"
echo
"Use: gpush [
-f|--force] [-a|--all] [
project name] [target branch]"
exit
1
fi
PUSHFORCE
=
if
[
"
$1
"
=
"-f"
]
||
[
"
$1
"
=
"--force"
]
;
then
PUSHFORCE
=
"--force"
shift
fi
PUSHALL
=
if
[
"
$1
"
=
"-a"
]
||
[
"
$1
"
=
"--all"
]
;
then
PUSHALL
=
"--all"
shift
fi
# use as project name
...
...
@@ -39,9 +46,10 @@ if [ -n "$1" ] ; then
shift
else
TARGETBRANCH
=
[
-n
"
$PUSHALL
"
]
||
TARGETBRANCH
=
master
fi
git push
$
@
$PUSHFORCE
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
$
PUSHALL
$PUSHFORCE
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
--tags
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
#> $ git commit -a; A='0.23-alt1'; git tag -s $A; \
...
...
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