]>
code.x2go.org Git - maintenancescripts.git/log
Juri Grabowski [Wed, 14 Dec 2022 21:37:31 +0000 (22:37 +0100)]
add remaining projects to gitlab
for i in /srv/git/code.x2go.org/*.git/ ; do git clone --mirror $i ; done
for i in *.git/ ; do cd $i ; git remote add gitlab
[email protected] :2migrate/${i%/} ; git push -f --mirror gitlab ; cd - ; echo ${i%.git/} ; done
Mihai Moldovan [Sat, 3 Dec 2022 03:16:07 +0000 (04:16 +0100)]
git/hooks/post-receive: select proper token.sh file - outside of the git repository.
Mihai Moldovan [Sat, 3 Dec 2022 03:07:24 +0000 (04:07 +0100)]
git/hooks/post-receive: add token support for Jenkins authentication.
Mihai Moldovan [Sun, 30 May 2021 09:06:05 +0000 (11:06 +0200)]
git/hooks/update-script._irkerhook.py_: merge in upstream changes.
Mihai Moldovan [Sun, 30 May 2021 08:56:48 +0000 (10:56 +0200)]
git/hooks/update-script._irkerhook.py_: switch to irc.libera.chat.
Mihai Moldovan [Fri, 24 Apr 2020 20:41:58 +0000 (22:41 +0200)]
git/hooks/x2go-post-receive-close-bugs: fix variable copy and paste fail: rev => newrev.
Mihai Moldovan [Mon, 23 Mar 2020 22:51:33 +0000 (23:51 +0100)]
git/hooks/x2go-post-receive-close-bugs: add missing DPKG_VERSION definition.
Mihai Moldovan [Thu, 5 Mar 2020 18:17:54 +0000 (19:17 +0100)]
git/hooks/x2go-post-receive-close-bugs: rework previous tag detection.
Add sanity checks.
If we stumble upon a rev that looks invalid (according to git
rev-parse), chances are that the previous rev doesn't have a parent
(i.e., is a root commit) and looking further back for another tag
doesn't make sense if we haven't found one yet.
In that case, stop looking (and, for that matter, don't create an
endless loop) and just use the empty tree object as the oldrev that will
be baked into URL as the parent/base.
Mihai Moldovan [Thu, 5 Mar 2020 18:11:15 +0000 (19:11 +0100)]
git/hooks/x2go-post-receive-close-bugs: drop useless use of cat.
Mihai Moldovan [Thu, 5 Mar 2020 18:10:31 +0000 (19:10 +0100)]
git/hooks/x2go-post-receive-close-bugs: add X-Mailer header, ported from git/hooks/x2go-post-receive-tag-pending.
Mihai Moldovan [Thu, 5 Mar 2020 16:44:59 +0000 (17:44 +0100)]
git/hooks/x2go-post-receive-close-bugs: backport changes from x2go-post-receive-tag-pending.
Both scripts should now be synced up when it comes to the common parts.
Mihai Moldovan [Thu, 5 Mar 2020 13:58:17 +0000 (14:58 +0100)]
git/hooks/x2go-post-receive-close-bugs: update description in top comment to actually mention what this script is outputting.
The previous description was a copy of the bug-tagging script.
Mihai Moldovan [Wed, 4 Mar 2020 21:39:02 +0000 (22:39 +0100)]
git/hooks/x2go-post-receive-tag-pending: rework quoting and whitespacing of cut call.
Mihai Moldovan [Wed, 4 Mar 2020 16:57:28 +0000 (17:57 +0100)]
git/hooks/x2go-post-receive-tag-pending: add more missing quotes.
Mihai Moldovan [Wed, 4 Mar 2020 16:13:40 +0000 (17:13 +0100)]
git/hooks/x2go-post-receive-tag-pending: use git rev-parse instead of complicated git show call to map a rev to an object SHA.
Mihai Moldovan [Tue, 3 Mar 2020 18:40:09 +0000 (19:40 +0100)]
git/hooks/x2go-post-receive-tag-pending: actually use ${fixed_in_version} instead of the global ${version} variable in send_mail ().
Mihai Moldovan [Tue, 3 Mar 2020 18:39:36 +0000 (19:39 +0100)]
git/hooks/x2go-post-receive-tag-pending: fix send_mail "signature" comment.
Mihai Moldovan [Tue, 3 Mar 2020 13:45:54 +0000 (14:45 +0100)]
git/hooks/x2go-post-receive-tag-pending: stop trying to process revisions that do not feature a debian/changelog file.
Mihai Moldovan [Tue, 3 Mar 2020 13:23:47 +0000 (14:23 +0100)]
git/hooks/x2go-post-receive-tag-pending: only execute on master and release branches.
This should mostly restore the original behavior, including correct
operation in the case of merges, which was actually broken before.
Mihai Moldovan [Tue, 3 Mar 2020 12:49:06 +0000 (13:49 +0100)]
git/hooks/x2go-post-receive-tag-pending: rework git rev-list call into something less duplicated.
Mihai Moldovan [Tue, 3 Mar 2020 12:27:46 +0000 (13:27 +0100)]
git/hooks/x2go-post-receive-tag-pending: reference actual tool location in X-Mailer header.
Mihai Moldovan [Tue, 3 Mar 2020 12:22:09 +0000 (13:22 +0100)]
git/hooks/x2go-post-receive-tag-pending: use more curly braces.
Mihai Moldovan [Tue, 3 Mar 2020 12:21:45 +0000 (13:21 +0100)]
git/hooks/x2go-post-receive-tag-pending: quote new variable.
Mihai Moldovan [Tue, 3 Mar 2020 12:21:07 +0000 (13:21 +0100)]
git/hooks/x2go-post-receive-tag-pending: switch URL location to HTTPS.
Mihai Moldovan [Mon, 2 Mar 2020 10:05:39 +0000 (11:05 +0100)]
git/hooks/x2go-post-receive-tag-pending: fix new tag/branch git rev-list behavior.
Excluding anything in that call is useless, since we already do so with
the git rev-parse call before and actually counter-productive, since it
also excludes the branch the new refs are based on, leading to it
effectively becoming a nop.
Mihai Moldovan [Mon, 2 Mar 2020 10:00:44 +0000 (11:00 +0100)]
git/hooks/x2go-post-receive-tag-pending: fix git rev-parse line and properly comment it.
The previous specification was utterly wrong and included refs that
shouldn't have been touched at all.
The crucial part is that we only want that call to emit negated entries,
essentially spanning any tag or branch which the new commits are not
part of, in order to avoid sending duplicated mails in case of merge
operations.
The original call did something entirely different - it correctly
excluded tags, but included the master and release branches during each
individual run, which is not what we wanted.
Mihai Moldovan [Thu, 2 Jan 2020 14:35:13 +0000 (15:35 +0100)]
git/hooks/x2go-post-receive-tag-pending: switch to using an array for process invocations.
Mihai Moldovan [Thu, 2 Jan 2020 12:06:14 +0000 (13:06 +0100)]
git/hooks/x2go-post-receive-tag-pending: handle new branches/tags gracefully.
Hopefully, at least.
Mihai Moldovan [Thu, 2 Jan 2020 11:49:38 +0000 (12:49 +0100)]
git/hooks/x2go-post-receive-tag-pending: update copyright notice for myself.
Mihai Moldovan [Thu, 2 Jan 2020 11:49:25 +0000 (12:49 +0100)]
git/hooks/x2go-post-receive-tag-pending: update X-Mailer header.
Mihai Moldovan [Thu, 2 Jan 2020 11:49:08 +0000 (12:49 +0100)]
git/hooks/x2go-post-receive-tag-pending: switch to unversioned Python 3 version.
Mihai Moldovan [Thu, 2 Jan 2020 11:48:21 +0000 (12:48 +0100)]
git/hooks/x2go-post-receive-tag-pending: merge in upstream changes.
Mihai Moldovan [Thu, 2 Jan 2020 10:35:20 +0000 (11:35 +0100)]
git/hooks/update-script._irkerhook.py_: actually fetch the parent of the first uniquely new commit.
This is way trickier than it sounds, because it could be... anything. A
merge, a grafted commit, or other stuff.
We'll try to guess and use the very first parent.
Mihai Moldovan [Thu, 2 Jan 2020 10:13:11 +0000 (11:13 +0100)]
git/hooks/update-script._irkerhook.py_: to generate a diff spanning multiple commits in gitweb, we need to use the hp parameter.
Keep hb around for merge bases (i.e., useful in case of rebases).
Mihai Moldovan [Thu, 2 Jan 2020 10:08:50 +0000 (11:08 +0100)]
git/hooks/update-script._irkerhook.py_: fix capturing in branch/tag regular expression.
Mihai Moldovan [Thu, 2 Jan 2020 10:06:03 +0000 (11:06 +0100)]
git/hooks/update-script._irkerhook.py_: fix string literal in replacement string for branch/tag regular expression.
Mihai Moldovan [Thu, 2 Jan 2020 09:30:09 +0000 (10:30 +0100)]
git/hooks/update-irkerhook_only: for new branches/tags, write out an initial message containing a file change summary for all exclusively new commits and then handle each exclusively new commit in the usual way.
Mihai Moldovan [Thu, 2 Jan 2020 09:25:58 +0000 (10:25 +0100)]
git/hooks/update-script._irkerhook.py_: generate list of changed files for exclusively new commits when detecting a new branch/tag (via --new=true) and spit out a pseudo-log message only.
This also includes a modified, rebase-like URL.
Mihai Moldovan [Thu, 2 Jan 2020 08:21:36 +0000 (09:21 +0100)]
git/hooks/update-irkerhook_only: generically recognize SHA1 and SHA256 NULL (pseudo) hashes via a regular expression.
Mihai Moldovan [Wed, 1 Jan 2020 15:15:59 +0000 (16:15 +0100)]
git/hooks/update-script._irkerhook.py_: fix error due to outdated print call.
Mihai Moldovan [Wed, 1 Jan 2020 15:08:11 +0000 (16:08 +0100)]
git/hooks/update-irkerhook_only: add logic to handle new branches/tags gracefully.
Mihai Moldovan [Wed, 1 Jan 2020 15:07:40 +0000 (16:07 +0100)]
git/hooks/update-script._irkerhook.py_: implement --new parameter to handle new branches/tags more gracefully.
Mihai Moldovan [Wed, 1 Jan 2020 13:53:29 +0000 (14:53 +0100)]
git/hooks/update-script._irkerhook.py_: switch to Python 3.
Mihai Moldovan [Wed, 1 Jan 2020 13:35:58 +0000 (14:35 +0100)]
git/hooks/update-script._irkerhook.py_: disable author, email and logmsg conversion to unicode since that should happen automatically now.
Mihai Moldovan [Wed, 1 Jan 2020 13:34:02 +0000 (14:34 +0100)]
git/hooks/update-script._irkerhook.py_: merge in upstream changes (mostly Python-3-related).
Mihai Moldovan [Sun, 1 Dec 2019 03:59:24 +0000 (04:59 +0100)]
git/hooks/x2go-post-receive-{close-bugs,tag-pending}: switch to Python 3.6.
Mihai Moldovan [Sat, 29 Sep 2018 02:10:48 +0000 (04:10 +0200)]
git/hooks/update-script._check_: fix typo in merge-allowance detection.
Mihai Moldovan [Sat, 29 Sep 2018 02:06:56 +0000 (04:06 +0200)]
git/hooks/update-script._check_: check script name via $BASH_SOURCE[0] instead of using ${0} which may return the top-level invoking name.
Mihai Moldovan [Sat, 29 Sep 2018 02:02:50 +0000 (04:02 +0200)]
git/hooks/common.sh: use $BASH_SOURCE[0] instead of just $BASH_SOURCE.
Mihai Moldovan [Mon, 28 May 2018 01:09:05 +0000 (03:09 +0200)]
git/hooks/update-script._check_: allow upstream/ prefix.
Mihai Moldovan [Wed, 28 Feb 2018 01:20:30 +0000 (02:20 +0100)]
git/hooks/update-script._irkerhook.py_: do not try to convert to unicode if data already is unicode.
Mihai Moldovan [Thu, 23 Nov 2017 05:04:05 +0000 (06:04 +0100)]
git/hooks/x2go-post-receive-tag-pending: use ${SHORT_GIT_REPO_NAME}.
Mihai Moldovan [Thu, 23 Nov 2017 05:02:54 +0000 (06:02 +0100)]
git/hooks/common.sh: revert GIT_REPO_NAME variable handling.
We still need that one.
Mihai Moldovan [Thu, 23 Nov 2017 04:59:02 +0000 (05:59 +0100)]
git/hooks/x2go-post-receive-close-bugs: use ${SHORT_GIT_REPO_NAME}.
Mihai Moldovan [Thu, 23 Nov 2017 04:27:48 +0000 (05:27 +0100)]
git/hooks/{post-receive,update{,-{irkerhook_only,merge,script._acl_}}}: follow-up last change.
"${OUTSIDE_REPO}" should now always be an absolute path and point
directly to the directory containing all the hooks.
Mihai Moldovan [Thu, 23 Nov 2017 04:20:54 +0000 (05:20 +0100)]
git/hooks/common.sh: simplify and fix hooks directory discovery.
X2Go Administratör [Tue, 10 Oct 2017 04:09:45 +0000 (06:09 +0200)]
git/hooks/update-script._irkerhook.py_: employ weird workaround to make irkerhook correctly apply data to the templäte in case of Unicode characters in the log message, author name or email address.
X2Go Administrator [Tue, 10 Oct 2017 04:07:36 +0000 (06:07 +0200)]
Revert "git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües."
This reverts commit
23e1245c5034e2822995e8ce73b1dec01205c6cb .
X2Go Git Administratör [Tue, 10 Oct 2017 01:21:40 +0000 (03:21 +0200)]
git/hooks/update-script._irkerhook.py_: seriously try to fix encoding issües.
Mihai Moldovan [Sun, 20 Aug 2017 12:47:14 +0000 (14:47 +0200)]
git/hooks/update-script._irkerhook.py_: merge in upstream changes.
Mihai Moldovan [Mon, 15 May 2017 14:46:11 +0000 (16:46 +0200)]
git/hooks/x2go-post-receive-close-bugs: fix typo leading to git errors.
Mihai Moldovan [Mon, 6 Mar 2017 10:10:43 +0000 (11:10 +0100)]
git/hooks/x2go-post-receive-{close-bugs,tag-pending}: split up real name and address part locally in script and only MIME-encode the real name to not violate standards.
Mihai Moldovan [Mon, 6 Mar 2017 05:01:30 +0000 (06:01 +0100)]
git/hooks/update-script._irkerhook.py_: spit out IOErrors when accessing the webview to git clients to actually know why accessing the page failed.
Mihai Moldovan [Mon, 6 Mar 2017 04:12:14 +0000 (05:12 +0100)]
git/hooks/update-irkerhook_only: fix typo, --reverses doesn't exist.
Mihai Moldovan [Mon, 6 Mar 2017 04:07:31 +0000 (05:07 +0100)]
git/hooks/update-script._irkerhook.py_: use HTTPS directly, irkerhook doesn't like redirections.
Mihai Moldovan [Mon, 6 Mar 2017 03:57:13 +0000 (04:57 +0100)]
git/hooks/x2go-post-receive-{close-bugs,tag-pending}: temporarily fix perl issue via switching to a python one-liner to encode the From address.
Will be reverted once
https://bugs.launchpad.net/ubuntu/+source/libencode-perl/+bug/
1670226 is
fixed.
Mihai Moldovan [Fri, 3 Mar 2017 15:16:28 +0000 (16:16 +0100)]
git/hooks/common.sh: the change classes passed to --diff-filter must be concatenated directly.
The documentation is unclear in this respect, the pipes are only
included for human consumption.
Mihai Moldovan [Mon, 8 Feb 2016 17:35:25 +0000 (18:35 +0100)]
git/hooks/update-script._irkerhook.py_: force UTF-8 while decoding JSON.
Maybe this helps with UTF-8 in commit messages.
Mihai Moldovan [Sun, 3 May 2015 23:22:46 +0000 (01:22 +0200)]
git/hooks/update-script._irkerhook.py_: also pass the common ancestor for rebased ("parent") when getting the diff tree.
Mihai Moldovan [Sun, 3 May 2015 23:18:08 +0000 (01:18 +0200)]
ham
Mihai Moldovan [Sun, 3 May 2015 23:16:51 +0000 (01:16 +0200)]
git/hooks/update-script._irkerhook.py_: fixup rebase URL, hoping that will work.
Mihai Moldovan [Sun, 3 May 2015 23:16:16 +0000 (01:16 +0200)]
git/hooks/update-script._irkerhook.py_: another try at color fixing. Python!
Mihai Moldovan [Sun, 3 May 2015 23:09:41 +0000 (01:09 +0200)]
git/hooks/update-irkerhook_only: delete garbage again...
Mihai Moldovan [Sun, 3 May 2015 23:09:01 +0000 (01:09 +0200)]
git/hooks/update-irkerhook_only: delete garbage.
Mihai Moldovan [Sun, 3 May 2015 23:08:31 +0000 (01:08 +0200)]
git/hooks/update-irkerhook_only: add some garbage.
Mihai Moldovan [Sun, 3 May 2015 23:07:11 +0000 (01:07 +0200)]
git/hooks/update-script._irkerhook.py_: correctly get parent in a rebase.
Makes the URL actually usable.
Mihai Moldovan [Sun, 3 May 2015 23:06:46 +0000 (01:06 +0200)]
git/hooks/update-script._irkerhook.py_: fix color parsing for rebase message.
Mihai Moldovan [Sun, 3 May 2015 22:54:24 +0000 (00:54 +0200)]
git/hooks/update-irkerhook_only: delete garbage.
Mihai Moldovan [Sun, 3 May 2015 22:53:26 +0000 (00:53 +0200)]
git/hooks/update-script._irkerhook.py_: fix syntax error...
Mihai Moldovan [Sun, 3 May 2015 22:50:46 +0000 (00:50 +0200)]
git/hooks/update-irkerhook_only: add garbage.
Mihai Moldovan [Sun, 3 May 2015 22:48:07 +0000 (00:48 +0200)]
git/hooks/update-irkerhook_only: make merge- and rebase-aware. Don't flood the channel.
Mihai Moldovan [Sun, 3 May 2015 22:47:05 +0000 (00:47 +0200)]
git/hooks/update{,-merge}: move irkerhook logic to git/hooks/update-irkerhook_only.
Mihai Moldovan [Sun, 3 May 2015 22:45:09 +0000 (00:45 +0200)]
git/hooks/update-script._irkerhook.py_: add experimental rebase support.
Mihai Moldovan [Wed, 1 Apr 2015 07:14:13 +0000 (09:14 +0200)]
git/hooks/common.sh: use lower case typeset attribute if using bash anyway.
Mihai Moldovan [Wed, 1 Apr 2015 07:09:36 +0000 (09:09 +0200)]
git/hooks/common.sh: make semantically function-local variables actually function-local.
Mihai Moldovan [Tue, 31 Mar 2015 07:41:46 +0000 (09:41 +0200)]
git/hooks/update-script._irkerhook.py_: actually split the subject line
and message body by a newline in git log's pretty format string. Oops.
Mihai Moldovan [Tue, 31 Mar 2015 07:26:38 +0000 (09:26 +0200)]
git/hooks/update-script._irkerhook.py_: try to get the
colors within
(potential)
commit messages
evaluated.
Not sure if self.__dict__ is the right way
to go, but it's been working
in another place, so let's keep
all fingers crossed.
Mihai Moldovan [Tue, 31 Mar 2015 07:10:15 +0000 (09:10 +0200)]
git/hooks/update-script._irkerhook.py_: fix multiline commit messages.
Turns out, python doesn't like
running append() on temporary/sliced
lists.
Or rather, append() is destructive and doesn't
just return a new list, but changes the object
it was called on.
Also add the color lightgrey for the
truncate message. Caveat: don't use the ANSI escape
code...
Mihai Moldovan [Tue, 31 Mar 2015 06:50:04 +0000 (08:50 +0200)]
git/hooks/update-script._irkerhook.py_: use correct git
log formatting
Also truncate
output if
it exceeds
six
lines.
(This is also a test commit message.)
Mihai Moldovan [Tue, 31 Mar 2015 06:27:19 +0000 (08:27 +0200)]
git/hooks/update-script._irkerhook.py_: maxsplit was off-by-one.
As always.
Mihai Moldovan [Tue, 31 Mar 2015 06:21:48 +0000 (08:21 +0200)]
git/hooks/update-script._irkerhook.py_: allow multiple lines per commit message.
Also strip empty lines to not spam the channel unnecessary.
Mihai Moldovan [Sun, 29 Mar 2015 02:45:57 +0000 (04:45 +0200)]
git/hooks/update-script._irkerhook.py_: make URL red.
Mihai Moldovan [Fri, 27 Mar 2015 03:46:29 +0000 (04:46 +0100)]
git/hooks/update-script._irkerhook.py_: only show a file list summary if it's longer than 60 characters.
Mihai Moldovan [Fri, 27 Mar 2015 03:40:23 +0000 (04:40 +0100)]
git/hooks/update-script._irkerhook.py_: try putting a newline in the message template to force the log message to be send separately.
Mihai Moldovan [Thu, 26 Mar 2015 16:12:48 +0000 (17:12 +0100)]
git/hooks/update-script._irkerhook.py_: use CIA-like option (+N files in M directories) for more than two changed files.
Mihai Moldovan [Thu, 26 Mar 2015 16:09:00 +0000 (17:09 +0100)]
git/hooks/update{,-merge}: run irkerhook multiple times per push for multiple commits. Make sure it doesn't fail.
Mihai Moldovan [Thu, 26 Mar 2015 11:31:39 +0000 (12:31 +0100)]
git/hooks/common.sh: add new SHORT_GIT_REPO_NAME variable and use as irkerhook's repo option.
Mihai Moldovan [Thu, 26 Mar 2015 11:24:30 +0000 (12:24 +0100)]
git/hooks/update{,-merge}: use more quoting, set repo directly.
Mihai Moldovan [Thu, 26 Mar 2015 11:20:43 +0000 (12:20 +0100)]
git/hooks/update-script._irkerhook.py_: hardcode X2Go project value.
Mihai Moldovan [Thu, 26 Mar 2015 11:11:50 +0000 (12:11 +0100)]
git/hooks/update-script._irkerhook.py_: link to commitdiff and place the URL more prominently, replacing the commit ID.