Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2936

pre-receive hook error when pushing to filesystem URL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • None
    • None
    • None

    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

          Activity

            People

              ssaasen Stefan Saasen (Inactive)
              001a86b9adcf Will Dampney [AppFusions]
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: