Last modified: 2014-08-11 09:48:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70902, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68902 - Add pre-commit hook to check executable rights
Add pre-commit hook to check executable rights
Status: NEW
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-31 09:03 UTC by db [inactive,noenotif]
Modified: 2014-08-11 09:48 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description db [inactive,noenotif] 2014-07-31 09:03:57 UTC
To avoid bugs like bug 66182, there should be a check for executable rights on text files and image files or for all files, when there would never be executable files in wikimedia git. Thanks.
Comment 1 christian 2014-07-31 19:50:30 UTC
You can of course install your own pre-commit hook to do so, but git
does not allow to automatically install hooks.

But one could add such guards to Jenkins, if that's desired.
Hence, moving to the "Continuous integration" component.
Comment 2 db [inactive,noenotif] 2014-08-10 19:35:47 UTC
There is a hook, which rejectes patch sets without valid Change-Id, the same is needed here, maybe call it post-commit hook or server-commit hook, but that is wat is needed to avoid having these files in gerrit. To avoid merge of this, you can use jenkins, but not all repos having jenkins running.
Comment 3 Chad H. 2014-08-10 23:00:06 UTC
(In reply to db from comment #2)
> There is a hook, which rejectes patch sets without valid Change-Id, the same
> is needed here, maybe call it post-commit hook or server-commit hook, but
> that is wat is needed to avoid having these files in gerrit. To avoid merge
> of this, you can use jenkins, but not all repos having jenkins running.

That's not a hook. It's a piece of functionality in Gerrit. I have no intentions of hacking Gerrit for this when Jenkins will do just fine. If Jenkins isn't running on a repo then add it.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links