pre-receive hook error when pushing to filesystem URL

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • None
    • Affects Version/s: None
    • Component/s: None

      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?

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

              Created:
              Updated:
              Resolved: