How to push .txt.gz file on git

I am trying to pull some samples of compressed data into my repository for testing purposes, but I am getting an error. I am using eclipse for this.

pre-receive hook declined

File [SomeFile.txt.gz] violates file name pattern 
   [(\.jar)$|(\.war)$|(\.exe)$|(\.rar)$|(\.bin)$|(\.so)$|(\.gz)$].

I am trying to push a bunch of compressed files. I have write permission for this repo and I do it regularly.

+4
source share
1 answer

Perhaps this is due to the christiangalsterer/stash-filehooks-pluginAtlassian Bitbucket Server plugin for checking various file attributes, such as size, name. <sh> See FileNameHook.java.

https://github.com/christiangalsterer/stash-filehooks-plugin/raw/master/screenshots/file-hooks-plugin-comfiguration.png

You may be asked to change this template to Settings -> Hooks -> File Name Hook

https://github.com/christiangalsterer/stash-filehooks-plugin/raw/master/screenshots/file-hooks-plugin-filename-hook-configuration.png

0
source

Source: https://habr.com/ru/post/1674712/


All Articles