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
a93453c5
Commit
a93453c5
authored
Jan 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpush: push to all remote repos like git.*
parent
89029524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
TODO
TODO
+0
-2
gpush
bin/gpush
+12
-4
No files found.
TODO
View file @
a93453c5
gpush: remote git.*
lib, %files:
%post -p %post_ldconfig
%postun -p %postun_ldconfig
...
...
bin/gpush
View file @
a93453c5
...
...
@@ -34,7 +34,7 @@ if [ -n "$1" ] ; then
PROJECTNAME
=
$1
shift
else
PROJECTNAME
=
$(
basename
`
pwd
`
)
PROJECTNAME
=
$(
basename
`
get_root_git_dir
`
)
fi
CURRENTBRANCH
=
$(
get_current_branch
)
...
...
@@ -58,9 +58,17 @@ else
TEXTBRANCH
=
"branch
$TARGETBRANCH
"
fi
echo
"Push
$TEXTBRANCH
from
$PROJECTNAME
.git to
$GIRARHOST
:packages/
$PROJECTNAME
.git"
git push
$PUSHALL
$PUSHFORCE
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
--tags
$GIRARHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
push_to_remote
()
{
local
GHOST
=
$1
echo
"Push
$TEXTBRANCH
from
$PROJECTNAME
.git to
$GIRARHOST
:packages/
$PROJECTNAME
.git"
git push
$PUSHALL
$PUSHFORCE
$GHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
git push
--tags
$GHOST
:packages/
$PROJECTNAME
.git
$TARGETBRANCH
}
for
i
in
`
(
echo
$GIRARHOST
;
get_remote_git_list
)
|
uniq
`
;
do
push_to_remote
$i
done
#> $ git commit -a; A='0.23-alt1'; git tag -s $A; \
#> git tag -s -f -m 'Sisyphus release $A' sisyphus $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