[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Move to salsa.debian.org - locking down alioth repos



Dear all,

I have started locking down repositories on alioth, in particular by now
texlive-bin, texlive-nonbin, biber, texinfo, asymptote (more to come).

That means if you try to *push* something to the repo you will get
something like this:
X11 forwarding request failed on channel 0
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 290 bytes | 290.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: ========================================================
remote: This repository has been moved to salsa.debian.org:
remote: https://salsa.debian.org/tex-team/texlive-nonbin
remote: ========================================================
To git+ssh://git.debian.org/git/debian-tex/texlive-nonbin.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git+ssh://preining@git.debian.org/git/debian-tex/texlive-nonbin.git'


This is done by adding a simple pre-receive hook
(repo.git/hooks/pre-receive).

I wrote a simple script
  lock-down-repo
in /git/debian-tex/lock-down-repo that allows to create this hook
first argument: the repo/directory
optional second argument: the salsa file part
  defaults to tex-team/$(basename repo/directory .git)

Example
  bash lock-down-repo tex-common.git
would lock that repo and would issue
  https://salsa.debian.org/tex-team/tex-common
while
  bash lock-down-repo foobar.git preining/foobar
would lock down foobar.git with the issue
  https://salsa.debian.org/preining/foobar

Hope that helps.

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


Reply to: