ALT Linux Bugzilla
– Attachment 4196 Details for
Bug 17914
[FR] поддержка submodules
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Вариант 2
gear-clone-submodule (text/plain), 378 bytes, created by
Alexey Gladkov
on 2010-01-11 22:09:12 MSK
(
hide
)
Description:
Вариант 2
Filename:
MIME Type:
Creator:
Alexey Gladkov
Created:
2010-01-11 22:09:12 MSK
Size:
378 bytes
patch
obsolete
>#!/bin/ash -efu > >repo="$1"; shift >destdir="${1-}" > >if [ -z "$destdir" ]; then > destdir="${repo##*/}" > destdir="${destdir%.git}" >fi > >git clone -- "$repo" "$destdir" >cd "$destdir" > >if git submodule status |grep -qs '^-'; then > git submodule init > git submodule status | > cut -d' ' -f2 | > xargs -ri git config --replace-all "submodule.{}.url" "$repo/{}" > git submodule update >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 17914
:
3480
|
4195
| 4196 |
4197
|
4398