mirror of https://github.com/apache/kafka.git
Fix SCRIPT_DIR to be an absolute path so git clones against the REPO work when it is also your cwd
This commit is contained in:
parent
de54c97ddc
commit
a3a7245381
|
@ -42,7 +42,7 @@ import tempfile
|
||||||
|
|
||||||
PROJECT_NAME = "kafka"
|
PROJECT_NAME = "kafka"
|
||||||
CAPITALIZED_PROJECT_NAME = "kafka".upper()
|
CAPITALIZED_PROJECT_NAME = "kafka".upper()
|
||||||
SCRIPT_DIR = os.path.dirname(__file__)
|
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
|
||||||
# Location of the local git repository
|
# Location of the local git repository
|
||||||
REPO_HOME = os.environ.get("%s_HOME" % CAPITALIZED_PROJECT_NAME, SCRIPT_DIR)
|
REPO_HOME = os.environ.get("%s_HOME" % CAPITALIZED_PROJECT_NAME, SCRIPT_DIR)
|
||||||
# Remote name which points to Apache git
|
# Remote name which points to Apache git
|
||||||
|
|
Loading…
Reference in New Issue