简体   繁体   中英

XCode Server git repository path

In an XCode post-action script, how can I access the path to the git repository? Is there a variable available or do I have to dig around and find the absolute path?

In case anyone else has this problem, I ended up doing the following:

cd ${PROJECT_DIR};GIT_LOG=`git log --no-merges --oneline --since=1.day`

The variable PROJECT_DIR is what I was looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM