- Re-iterating the last change once again, 'git rev-parse --verify $REV'
will return false even if $REV is a normal branch upon first clone
of the repo. Thus 'git fetch $URL +$REV:$REV" is run initially.
However, the 'git checkout $REV' then fails because it's missing
tracking information. Therefore, try a normal checkout first and fetch
the specific $REV only when that fails (due to reasons described below). (forwarded request 123669 from saschpe)
OBS-URL: https://build.opensuse.org/request/show/123792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-tar_scm?expand=0&rev=8
- Re-iterating the last change once again, 'git rev-parse --verify $REV'
will return false even if $REV is a normal branch upon first clone
of the repo. Thus 'git fetch $URL +$REV:$REV" is run initially.
However, the 'git checkout $REV' then fails because it's missing
tracking information. Therefore, try a normal checkout first and fetch
the specific $REV only when that fails (due to reasons described below).
OBS-URL: https://build.opensuse.org/request/show/123669
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=44
Allow git revision to refer to revs not available from default clone/fetch
Previously, the "revision" parameter must be something reachable after
doing a default "git clone". Remove this limitation.
A primary use-case is to integrate OBS with the gerrit code review tool,
which stores changes under review in "refs/changes/...". Without this
change, such refs can't be retrieved by the tar_scm service. (forwarded request 122007 from rohanpm)
OBS-URL: https://build.opensuse.org/request/show/122015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-tar_scm?expand=0&rev=7
Allow git revision to refer to revs not available from default clone/fetch
Previously, the "revision" parameter must be something reachable after
doing a default "git clone". Remove this limitation.
A primary use-case is to integrate OBS with the gerrit code review tool,
which stores changes under review in "refs/changes/...". Without this
change, such refs can't be retrieved by the tar_scm service.
OBS-URL: https://build.opensuse.org/request/show/122007
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=42
- make svn checkout --trust-server-cert option conditional, since
this option is not supported by versions prior to subversion 1.6.
- Trim user prefix from tarball filename.
This enables tar_scm service to be used with git and ssh transport
(in conjuction with a passphrase less ssh-pubkey). Example Git URL:
git@gitrepo.tld:foobar.git
- git 1.6.x and very likely other version only support
"show --pretty=format:%at" as parameter with "format:" prefix.
git show --pretty=%at is also support by recent git versions. (forwarded request 98423 from dgollub)
OBS-URL: https://build.opensuse.org/request/show/98583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-tar_scm?expand=0&rev=3
- make svn checkout --trust-server-cert option conditional, since
this option is not supported by versions prior to subversion 1.6.
- Trim user prefix from tarball filename.
This enables tar_scm service to be used with git and ssh transport
(in conjuction with a passphrase less ssh-pubkey). Example Git URL:
git@gitrepo.tld:foobar.git
- git 1.6.x and very likely other version only support
"show --pretty=format:%at" as parameter with "format:" prefix.
git show --pretty=%at is also support by recent git versions.
OBS-URL: https://build.opensuse.org/request/show/98423
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=27