Importing and checking out nested trees works!

This commit is contained in:
Colin Walters committed 2011-10-15 01:23:01 -04:00
1 parent 6f1b880377
commit 3eb77d4ce8
5 files changed
+73 -7

No files matched your search

+1 -1
View File
@@ -1116,7 +1116,7 @@ add_one_path_to_tree_and_import (HacktreeRepo *self,
}
/* Implicitly add intermediate directories */
if (!add_one_directory_to_tree_and_import (self, component,
abspath, current_tree, dir,
component_abspath, current_tree, dir,
error))
goto out;
}
+3 -3
View File
@@ -117,9 +117,9 @@ ht_util_path_split (const char *path)
else
{
g_ptr_array_add (ret, g_strndup (p, slash - p));
p += 1;
p = slash + 1;
}
} while (p);
} while (p && *p);
return ret;
}
@@ -127,7 +127,7 @@ ht_util_path_split (const char *path)
char *
ht_util_path_join_n (const char *base, GPtrArray *components, int n)
{
int max = MAX(n+1, components->len);
int max = MIN(n+1, components->len);
GPtrArray *subcomponents;
char *path;
int i;