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
d08ec05f
Commit
d08ec05f
authored
May 02, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement gitery support and git host detection
parent
800556d6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1 deletion
+15
-1
config
etc/config
+1
-0
gitalias
etc/repos/gitalias
+1
-0
rsync
etc/repos/rsync
+2
-0
config
share/eterbuild/functions/config
+2
-1
git
share/eterbuild/functions/git
+9
-0
No files found.
etc/config
View file @
d08ec05f
...
...
@@ -73,6 +73,7 @@
# GIRAR_USER=lav
# default girar ssh alias
# autodetect gitery, git.alt if not set here
# GIRARHOST=git.alt
# Skip error if there are unpackaged files in the build
...
...
etc/repos/gitalias
View file @
d08ec05f
git.alt http://git.altlinux.org
gitery http://git.altlinux.org
git.eter http://git.etersoft.ru
etc/repos/rsync
View file @
d08ec05f
# ALT Linux
git.alt sisyphus rsync.altlinux.org::ALTLinux/Sisyphus
git.alt p10 rsync.altlinux.org::ALTLinux/p10/branch
git.alt p9 rsync.altlinux.org::ALTLinux/p9/branch
git.alt p8 rsync.altlinux.org::ALTLinux/p8/branch
git.alt p7 rsync.altlinux.org::ALTLinux/p7/branch
git.alt p6 rsync.altlinux.org::ALTLinux/p6/branch
...
...
share/eterbuild/functions/config
View file @
d08ec05f
...
...
@@ -61,7 +61,8 @@ CURRENTBRANCHNAME="M80"
[
-n
"
$DEBUG
"
]
&&
HASHERARG
=
"-v
$HASHERARG
"
#SSH_KEYFILE=~/.ssh/id_dsa
GIRARHOST
=
git.alt
# by default will detect gitery, git.alt in ~/.ssh/config
#GIRARHOST=git.alt
# Timeout in sec for ssh commands
SSHTIMEOUT
=
300
...
...
share/eterbuild/functions/git
View file @
d08ec05f
...
...
@@ -72,6 +72,7 @@ normalize_girar_name()
# Check if $1 like git.alt or git.eter, git.something
is_girar_name
()
{
rhas
"
$1
"
"^gitery"
&&
return
rhas
"
$1
"
"^git
\.
"
}
...
...
@@ -94,12 +95,20 @@ set_gear_host()
assert_var GIRARHOST
GITHOST
=
"
$GIRARHOST
"
GEARHOST
=
"
$GITHOST
"
[
"
$GEARHOST
"
=
"gitery"
]
&&
GEARHOST
=
"gyle"
&&
return
if
[
!
"
$GEARHOST
"
=
"git.eter"
]
;
then
GEARHOST
=
"
${
GITHOST
/git./gear.
}
"
fi
return
0
}
# copied from giter
get_girar_host_from_ssh
()
{
grep
-i
"host[
\t
]
\+
"
~/.ssh/config 2>/dev/null |
sed
"s|.*host[
\t
]*||gi"
|
grep
-m1
"^gitery *$"
&&
return
grep
-i
"host[
\t
]
\+
"
~/.ssh/config 2>/dev/null |
sed
"s|.*host[
\t
]*||gi"
|
grep
-m1
"^git
\.
"
}
# Try autodetect GIRARHOST. Return true, if get it from arg (need for shift args)
set_girar_host
()
...
...
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