]>
git.madduck.net Git - code/myrepos.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
01e31b7 )
skipped.
+mr (0.12) UNRELEASED; urgency=low
+
+ * Avoid creating parent directory for a checkout that will ultimately be
+ skipped.
+
+ -- Joey Hess <joeyh@debian.org> Sat, 03 Nov 2007 13:58:39 -0400
+
mr (0.11) unstable; urgency=low
* Avoid using commands like git-config and instead use "git config".
mr (0.11) unstable; urgency=low
* Avoid using commands like git-config and instead use "git config".
}
$dir=~s/^(.*)\/[^\/]+\/?$/$1/;
}
$dir=~s/^(.*)\/[^\/]+\/?$/$1/;
-
- if (! -d $dir) {
- print "mr $action: creating parent directory $dir\n" if $verbose;
- system("mkdir", "-p", $dir);
- }
}
elsif ($action =~ /update/) {
if (! -d $dir) {
}
elsif ($action =~ /update/) {
if (! -d $dir) {
my $skiptest=findcommand("skip", $dir, $topdir, $subdir);
my $command=findcommand($action, $dir, $topdir, $subdir);
my $skiptest=findcommand("skip", $dir, $topdir, $subdir);
my $command=findcommand($action, $dir, $topdir, $subdir);
+
+ if ($action eq 'checkout' && ! -d $dir) {
+ print "mr $action: creating parent directory $dir\n" if $verbose;
+ system("mkdir", "-p", $dir);
+ }
+
if (! $no_chdir && ! chdir($dir)) {
print STDERR "mr $action: failed to chdir to $dir: $!\n";
return FAILED;
if (! $no_chdir && ! chdir($dir)) {
print STDERR "mr $action: failed to chdir to $dir: $!\n";
return FAILED;