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
050ae065
Commit
050ae065
authored
Aug 06, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: allow /commit in Source-url with git
parent
d22373f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
rpmgs
bin/rpmgs
+7
-1
No files found.
bin/rpmgs
View file @
050ae065
...
...
@@ -91,6 +91,12 @@ git_to_tarball()
URL
=
"
$(
echo
"
$URL
"
|
sed
-e
's|/tree/.*||'
)
"
fi
# allow commit
if
echo
"
$URL
"
|
grep
-q
"github
\.
com.*/commit/"
;
then
CHECKOUT
=
"
$(
echo
"
$URL
"
|
sed
-e
's|.*/commit/||'
)
"
URL
=
"
$(
echo
"
$URL
"
|
sed
-e
's|/commit/.*||'
)
"
fi
local
d
=
"
$(
basename
"
$URL
"
.git
)
"
git clone
--recurse-submodules
"
$URL
"
"
$d
"
||
fatal
...
...
@@ -113,7 +119,7 @@ download_to()
local
TARGET
=
"
$2
"
pushd
$(
dirname
$TARGET
)
# make tarball from remote git (with submodules)
if
echo
"
$URL
"
|
grep
-q
"
\.
git$"
||
echo
"
$URL
"
|
grep
-q
"github
\.
com.*/tree
/"
;
then
if
echo
"
$URL
"
|
grep
-q
"
\.
git$"
||
echo
"
$URL
"
|
grep
-q
-E
"github
\.
com.*/(tree|commit)
/"
;
then
git_to_tarball
"
$URL
"
"
$TARGET
"
local
RET
=
$?
popd
...
...
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