-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git Tools integration #1
Conversation
@andyspiros can you review this? |
else | ||
if [[ -z ${host} ]]; then | ||
exitError 654 ${LINENO} "host is not defined" | ||
fi | ||
# workaround for Todi, Daint, and Lema | ||
# workaround for Todi, Daint, and Lema | ||
if [ "${host}" == "lema" -o "${host}" == "todi" -o "${host}" == "daint" ] ; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file already exists on svn.
if [ -z "${path}" ] ; then | ||
path=$(pwd) | ||
fi | ||
echo $(git -C "${path}" branch 2> /dev/null | sed -n '/^\*/s/^\* //p') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git -C $path rev-parse --abbrev-ref HEAD
is probably easier.
I'm done with the review. I suppose you tested it all, right? It's fine from my point of view. Just consider those few question I asked, then you can merge. |
Great thank you! I added these changes:
I further expanded my test function to test the implementation ;) |
I removed the function call to the test function to avoid showing the selftest every time the function is run ; |
No description provided.