# # patch "git_export.cc" # from [026821e40c845cfdfdef5e81aa9de0befb46f68d] # to [5442c384ab54c4e7fa64b92e0918aa2005b7123d] # ======================================================================== --- git_export.cc 026821e40c845cfdfdef5e81aa9de0befb46f68d +++ git_export.cc 5442c384ab54c4e7fa64b92e0918aa2005b7123d @@ -494,6 +494,10 @@ N(app.branch_name() != "", F("need base --branch argument for exporting")); + set heads; + get_branch_heads(app.branch_name(), app, heads); + N(heads.size() == 1, F("the to-be-exported branch has to have exactly one head")); + set_git_env("GIT_DIR", gitrepo.as_external()); git_history git; git.branch = app.branch_name();