Description
After creating a new repository within Stash, and attempting the following via command line in an existing git repo:
git remote set-url origin file:///path/to/stash/home/data/repositories/12
git push --all
...the following error occurs:
remote: hooks/pre-receive: line 6: /path/to/stash/home/data/repositories/12/hooks/pre-receive.d: is a directory
remote: hooks/pre-receive: line 6: exec: /path/to/stash/home/data/repositories/12/hooks/pre-receive.d: cannot execute: Unknown error: 0
To /path/to/stash/home/data/repositories/12
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '/path/to/stash/home/data/repositories/12'
Using a URL to the repository works, but I'm trying to understand why the pre-receive stage works for one and not the other?
Attachments
Issue Links
- was cloned as
-
BSERV-3701 pre-receive hook error when pushing to https URL
- Closed