--- /dev/null
+#! /bin/sh
+
+if [ -z "$1" -o -n "$2" ]; then
+ echo "Usage: $0 project_name" >&2
+ exit 1
+fi
+
+project_name="$1"
+old_dir="$HOME/admin/prog/$1"
+new_dir="$HOME/prog/Python/$1"
+
+fix_path() {
+ config_option="$1"
+ path="`git config --get $config_option`"
+ new_path="`echo \"$path\" | sed \"s@$old_dir@$new_dir@\"`"
+ git config "$config_option" "$new_path"
+}
+
+mv "$old_dir" "$new_dir" &&
+
+for project_dir in "$new_dir" "$HOME"/current/projects/"$project_name" \
+ "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$project_name".git; do
+ cd "$project_dir" &&
+ for remote in `git remote`; do
+ fix_path "remote.$remote.url"
+ done
+done