Re: [PATCH 04/19] teach remote-testgit to import non-HEAD refs
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:27
Sverre Rabbelier [off-list ref] writes:
From: Jeff King <redacted> Upon receiving an "import" command, the testgit remote helper would ignore the ref asked for by git and generate a fast-export stream based on HEAD. Instead, we should actually give git the ref it asked for. This requires adding a new parameter to the export_repo method in the remote-helpers python library, which may be used by code outside of git.git. We use a default parameter so that callers without the new parameter will get the same behavior as before. Signed-off-by: Sverre Rabbelier <redacted> --- Unchanged from Peff's series.
This seems to be slightly different from what was sent to the list, though. Using refs=None as default and assigning ["HEAD"] is more in line with the standard Python practice, so the implementation is better. But "do we still append HEAD after --import-marks?" still stands.