Skip to content

Does not work if being run with Apache #1

Description

@MartinPaulo

I found that if I ran with Apache as my front end the command

git rev-parse --short HEAD

did not work, as it was not being executed in my projects home directory. To fix this, I added the following line to my projects settings.py:

SOURCE_REVISION_COMMANDS = [
    'git --git-dir=%s/.git rev-parse --short HEAD' % BASE_DIR,  # for git
]

Possibly a bit hokey, but I'm relatively new to both Python and Django. So all improvements are gladly accepted!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions