• We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Example:

      /home/stash/data/repositories/1/config
      [stash]
          hierarchyid = 9b3731760974b2b323e7
      [repository]
          name = test-repo
      [project]
          name = PROJECT
      

      In this case we can easy get project and repository names in hook with command: `git config --get project.name`

            [BSERV-3972] Store project and repository names in git config

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3396116 ] New: JAC Suggestion Workflow 3 [ 3624199 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: BSERV Suggestions Workflow [ 2686889 ] New: JAC Suggestion Workflow [ 3396116 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 561363 ] New: BSERV Suggestions Workflow [ 2686889 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]
            Gurleen Anand [Atlassian] made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 238268 ]
            Gurleen Anand [Atlassian] made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 292690 ]

            zakaria.boutami

            That's correct. Git intentionally does not allow the server to make changes to clones; it's a security consideration, to ensure a malevolent server cannot "attack" clients through their configuration.

            Best regards,
            Bryan Turner
            Atlassian Bitbucket

            Bryan Turner (Inactive) added a comment - zakaria.boutami That's correct. Git intentionally does not allow the server to make changes to clones; it's a security consideration, to ensure a malevolent server cannot "attack" clients through their configuration. Best regards, Bryan Turner Atlassian Bitbucket

            git config bitbucket.project return project key only when run from Bitbucket Server. If run from local machine where the repository is cloned doesn't work, right?

            Zakaria Boutami added a comment - git config bitbucket.project return project key only when run from Bitbucket Server. If run from local machine where the repository is cloned doesn't work, right?
            Adam Ahmed (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 243209 ]
            Ben Humphreys made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 238268 ]
            Bryan Turner (Inactive) made changes -
            Fix Version/s New: 4.12.0 [ 64397 ]
            Resolution New: Fixed [ 1 ]
            Status Original: To be reviewed [ 10026 ] New: Closed [ 6 ]

              bturner Bryan Turner (Inactive)
              7ef3b1ca8c73 Konstantin Mironov
              Votes:
              6 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: