Skip to content

Instantly share code, notes, and snippets.

@ravecat
ravecat / git-svn-sync.sh
Last active May 26, 2020 08:40
[git] Script for sync between git and SVN repos
### Script for sync between git and SVN repos
#!/bin/bash
while [ -n "$1" ]; do
case "$1" in
--commit-ref-name) COMMIT_REF_NAME="$2"
echo "Found the COMMIT_REF_NAME option, with parameter value $COMMIT_REF_NAME"
shift ;;
--commit-sha) COMMIT_SHA="$2"
echo "Found the COMMIT_SHA option, with parameter value $COMMIT_SHA"
const logToFile = function(log) {
var file = require('fs').createWriteStream(__dirname + '/debug.log', {flags : 'w'});
file.write(require('util').format(log) + '\n');
};