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
ddb60d70
Commit
ddb60d70
authored
May 11, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpush: set project name if needed, user HEAD instead current branch name
parent
70f084af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
gpush
bin/gpush
+9
-1
No files found.
bin/gpush
View file @
ddb60d70
...
...
@@ -11,7 +11,12 @@ if [ "$1" = "-h" ] ; then
exit
1
fi
PROJECTNAME
=
$(
basename
`
pwd
`
)
# use as project name
if
[
-n
"
$1
"
]
;
then
PROJECTNAME
=
$1
else
PROJECTNAME
=
$(
basename
`
pwd
`
)
fi
CURRENTBRANCH
=
$(
git branch |
grep
"^
\*
"
|
cut
-d
" "
-f
2
)
...
...
@@ -20,6 +25,9 @@ if [ -z "$CURRENTBRANCH" ] ; then
exit
1
fi
# more correctly
CURRENTBRANCH
=
HEAD
git push
$@
git.alt:packages/
$PROJECTNAME
.git
$CURRENTBRANCH
:master
git push
--tags
git.alt:packages/
$PROJECTNAME
.git
$CURRENTBRANCH
:master
...
...
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