Code Monkey home page Code Monkey logo

erichdongubler.github.io's Introduction

erichdongubler.github.io's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

erichdongubler.github.io's Issues

Fix sitemap

  • Fix the language displays to use the appropriate i18n string
  • Fix the domain name

Create individual feeds for categories

This would be fairly easy to include dynamically for each category on the page. If we could generate the feed pages dynamically that would also be fantastic...

Blog: checking out a Git SVN shallow for an SVN working copy

http://ivanz.com/2009/01/15/selective-import-of-svn-branches-into-a-gitgit-svn-repository/

Basic steps

function git_svn_shallow_clone() {
	local repo_url="${1:?error: expected invocation of the form '<command> <repo_url> [<clone_directory> <other options for `git clone`>]'}"
	shift
	local target_dir="${1:-${repo_url##*/}}"
	shift
	local repo_trunk="$repo_url/trunk"
	echo "Making a shallow clone of $repo_trunk into folder $target_dir..."
	local revision="$(svn info "$repo_trunk" | awk '/^Last Changed Rev:/ { print $4 }')"
	echo "  Cloning last changed revision $revision"
	git svn clone --stdlayout -r"$revision:HEAD" "$repo_url" "$target_dir" "$@" && pushd "$target_dir" > /dev/null && git reset --hard && popd > /dev/null
}

# Example: Clone directly into the CWD.
# Note: if your connection fails midway through the cloning, you can pick up from
# where you left off by simply invoking the clone function again. Neat, right?
git_svn_shallow_clone <url> .

# You may need to run this in your cloned folder if you need to resume cloning from
# an interrupted connection.
git checkout master 

More advanced flow: cloning in an existing repo

git svn init --stdlayout "$repo_url"
git svn fetch -r"$revision:HEAD"

Troubleshooting

  • I'm not sure why -s hasn't worked for me at some points, but it HAS given different (failing) behavior than --stdlayout in my most recent testing.
  • The repo_url MUST be the root of the standard SVN repo layout.
  • The revision MUST be part of the history of the repo_url you specify.

For ALL of the issues above, the only indication that something is wrong is that git will check out an empty repository. To start over, you have to rm -r .git.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.