On 2013-11-11 17:54, Felipe Contreras wrote: > Hi, > > Here are the patches that allow transport helpers to be completely transparent; > renaming branches, deleting them, custom refspecs, --force, --dry-run, > reporting forced update, everything works. > > Small changes since v5: > > diff --git a/builtin/fast-export.c b/builtin/fast-export.c > index 8ed41b4..4b76222 100644 > --- a/builtin/fast-export.c > +++ b/builtin/fast-export.c > @@ -736,9 +736,10 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix) > usage_with_options (fast_export_usage, options); > > if (refspecs_list.nr) { > - const char *refspecs_str[refspecs_list.nr]; > + const char **refspecs_str; > int i; > > + refspecs_str = xmalloc(sizeof(*refspecs_str) * refspecs_list.nr); > for (i = 0; i < refspecs_list.nr; i++) > refspecs_str[i] = refspecs_list.items[i].string; > > @@ -746,6 +747,7 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix) > refspecs = parse_fetch_refspec(refspecs_nr, refspecs_str); > > string_list_clear(&refspecs_list, 1); > + free(refspecs_str); > } > > if (use_done_feature) > diff --git a/git-remote-testgit.sh b/git-remote-testgit.sh > index 716aa4c..1c006a0 100755 > --- a/git-remote-testgit.sh > +++ b/git-remote-testgit.sh > @@ -15,6 +15,8 @@ test -z "$refspec" && prefix="refs" > > export GIT_DIR="$url/.git" > > +force= > + > mkdir -p "$dir" > > if test -z "$GIT_REMOTE_TESTGIT_NO_MARKS" What about changing those two test-hg.sh tests to test_expect_success? http://article.gmane.org/gmane.comp.version-control.git/237606 Should those changes be squashed into the "transport-helper: don't update refs in dry-run" and "transport-helper: add 'force' to 'export' helpers" commits? Or are those commits not really the appropriate place? Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html