This file contains 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
#!/bin/bash | |
# ---------------------------------------------------------------------------- | |
# SVN-to-GitHub.bash | |
# ---------------------------------------------------------------------------- | |
export SVNREPO="$1" | |
export GITPERLLIB=/usr/local/Cellar/git/2.35.1/share/perl5:/usr/local/lib/perl5/site_perl/5.30.3/darwin-thread-multi-2level | |
SOURCE=${BASH_SOURCE[0]} | |
while [ -h "${SOURCE}" ]; do |
This file contains 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
# .grip/settings.py | |
# Uses "git credential fill" to populate USERNAME and PASSWORD | |
def git_credential_fill(): | |
import subprocess | |
argv = ["git", "credential", "fill"] | |
process = subprocess.Popen(argv, text = True, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE) | |
output = process.communicate(input = "protocol=https\nhost=github.com\n")[0].strip() | |
map = dict(item.split("=") for item in output.splitlines()) |