This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var React = require('react'), | |
classSet = require('react/lib/cx'), | |
_ = require('underscore'); | |
var ClassNameMixin = { | |
propTypes: { | |
className: React.PropTypes.string, | |
context: React.PropTypes.string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
determineBranch() { | |
GIT_USERNAME=$(git config --global user.user) | |
if [ -z "$GIT_USERNAME" ]; then | |
echo "No user found in git config. Set key 'user' to your github username." | |
BRANCH_NAME=$1 | |
else | |
if [ -n "$1" ]; then | |
if [[ $1 == *-n* && -n "$2" ]]; then | |
BRANCH_NAME=$2 | |
else |