* What's cooking in git.git (Jan 2012, #08; Tue, 31)
@ 2012-02-01 7:19 Junio C Hamano
2012-02-01 12:07 ` Jakub Narebski
2012-02-10 2:27 ` Junio C Hamano
0 siblings, 2 replies; 9+ messages in thread
From: Junio C Hamano @ 2012-02-01 7:19 UTC (permalink / raw)
To: git
What's cooking in git.git (Jan 2012, #08; Tue, 31)
--------------------------------------------------
Here are the topics that have been cooking. Commits prefixed with '-' are
only in 'pu' (proposed updates) while commits prefixed with '+' are in
'next'.
As promised in the recent couple of issues of "What's cooking", the first
batch of topics that have been cooking in 'next' are now in 'master'. The
tip of 'next' hasn't been rewound yet, but it soon will after the second
batch of topics graduate.
Here are the repositories that have my integration branches:
With maint, master, next, pu, todo:
git://git.kernel.org/pub/scm/git/git.git
git://repo.or.cz/alt-git.git
https://code.google.com/p/git-core/
https://github.com/git/git
With only maint and master:
git://git.sourceforge.jp/gitroot/git-core/git.git
git://git-core.git.sourceforge.net/gitroot/git-core/git-core
With all the topics and integration branches:
https://github.com/gitster/git
The preformatted documentation in HTML and man format are found in:
git://git.kernel.org/pub/scm/git/git-{htmldocs,manpages}.git/
git://repo.or.cz/git-{htmldocs,manpages}.git/
https://code.google.com/p/git-{htmldocs,manpages}.git/
https://github.com/gitster/git-{htmldocs,manpages}.git/
--------------------------------------------------
[New Topics]
* fc/zsh-completion (2012-01-30) 4 commits
- (squash to previous?) completion: remove unused code
- completion: simplify __git_remotes
- (squash) completion-style
- completion: be nicer with zsh
Somehow only 2 out of 4-part series seem to have reached the list, missing
the other 2.
* jc/maint-request-pull-for-tag (2012-01-31) 1 commit
- request-pull: explicitly ask tags/$name to be pulled
Usability improvement.
Will merge to 'next'.
* nd/find-pack-entry-recent-cache-invalidation (2012-01-31) 1 commit
- find_pack_entry(): do not keep packed_git pointer locally
Review comments sent.
* nd/pack-objects-parseopt (2012-01-31) 1 commit
- pack-objects: convert to use parse_options()
Review comments sent.
* tr/merge-edit-guidance (2012-01-31) 1 commit
(merged to 'next' on 2012-01-31 at bb678f7)
+ merge: add instructions to the commit message when editing
Will merge to 'master' in the second batch.
--------------------------------------------------
[Graduated to "master"]
* ar/i18n-no-gettext (2012-01-27) 4 commits
(merged to 'next' on 2012-01-27 at 0ecf258)
+ i18n: Do not force USE_GETTEXT_SCHEME=fallthrough on NO_GETTEXT
(merged to 'next' on 2012-01-23 at 694a94e)
+ i18n: Make NO_GETTEXT imply fallthrough scheme in shell l10n
+ add a Makefile switch to avoid gettext translation in shell scripts
+ git-sh-i18n: restructure the logic to compute gettext.sh scheme
* da/maint-mergetool-twoway (2012-01-23) 1 commit
(merged to 'next' on 2012-01-23 at f927323)
+ mergetool: Provide an empty file when needed
Caters to GUI merge backends that cannot merge two files without
a base by giving them an empty file as a "pretend" common ancestor.
* jc/advise-i18n (2011-12-22) 1 commit
(merged to 'next' on 2012-01-23 at 6447013)
+ i18n of multi-line advice messages
Allow localization of advice messages that tend to be longer and
multi-line formatted. For now this is deliberately limited to advise()
interface and not vreportf() in general as touching the latter has
interactions with error() that has plumbing callers whose prefix "error: "
should never be translated.
* jl/submodule-re-add (2012-01-24) 1 commit
(merged to 'next' on 2012-01-26 at 482553e)
+ submodule add: fix breakage when re-adding a deep submodule
"git submodule add" forgot to recompute the name to be stored in .gitmodules
when the module was once added to the superproject and already initialized.
* ks/sort-wildcard-in-makefile (2012-01-22) 1 commit
(merged to 'next' on 2012-01-23 at e2e0c1d)
+ t/Makefile: Use $(sort ...) explicitly where needed
t/Makefile is adjusted to prevent newer versions of GNU make from running
tests in seemingly random order.
* ld/git-p4-branches-and-labels (2012-01-20) 5 commits
(merged to 'next' on 2012-01-23 at 9020ec4)
+ git-p4: label import fails with multiple labels at the same changelist
+ git-p4: add test for p4 labels
+ git-p4: importing labels should cope with missing owner
+ git-p4: cope with labels with empty descriptions
+ git-p4: handle p4 branches and labels containing shell chars
(this branch is used by va/git-p4-branch.)
* nd/clone-detached (2012-01-24) 12 commits
(merged to 'next' on 2012-01-26 at 7b0cc8a)
+ clone: fix up delay cloning conditions
(merged to 'next' on 2012-01-23 at bee31c6)
+ push: do not let configured foreign-vcs permanently clobbered
(merged to 'next' on 2012-01-23 at 9cab64e)
+ clone: print advice on checking out detached HEAD
+ clone: allow --branch to take a tag
+ clone: refuse to clone if --branch points to bogus ref
+ clone: --branch=<branch> always means refs/heads/<branch>
+ clone: delay cloning until after remote HEAD checking
+ clone: factor out remote ref writing
+ clone: factor out HEAD update code
+ clone: factor out checkout code
+ clone: write detached HEAD in bare repositories
+ t5601: add missing && cascade
"git clone" learned to detach the HEAD in the resulting repository when
the source repository's HEAD does not point to a branch.
* rr/sequencer (2012-01-11) 2 commits
(merged to 'next' on 2012-01-23 at f349b56)
+ sequencer: factor code out of revert builtin
+ revert: prepare to move replay_action to header
Moving large chunk of code out of cherry-pick/revert for later reuse,
primarily to prepare for the next cycle.
* tr/grep-l-with-decoration (2012-01-23) 1 commit
(merged to 'next' on 2012-01-23 at 42b8795)
+ grep: fix -l/-L interaction with decoration lines
Using "git grep -l/-L" together with options -W or --break may not make
much sense as the output is to only count the number of hits and there is
no place for file breaks, but the latter options made "-l/-L" to miscount
the hits.
* va/git-p4-branch (2012-01-26) 4 commits
(merged to 'next' on 2012-01-26 at e67c52a)
+ t9801: do not overuse test_must_fail
+ git-p4: Change p4 command invocation
+ git-p4: Add test case for complex branch import
+ git-p4: Search for parent commit on branch creation
(this branch uses ld/git-p4-branches-and-labels.)
--------------------------------------------------
[Stalled]
* jc/advise-push-default (2011-12-18) 1 commit
- push: hint to use push.default=upstream when appropriate
Peff had a good suggestion outlining an updated code structure so that
somebody new can try to dip his or her toes in the development. Any
takers?
Waiting for a reroll.
* ss/git-svn-prompt-sans-terminal (2012-01-04) 3 commits
- fixup! 15eaaf4
- git-svn, perl/Git.pm: extend Git::prompt helper for querying users
(merged to 'next' on 2012-01-05 at 954f125)
+ perl/Git.pm: "prompt" helper to honor GIT_ASKPASS and SSH_ASKPASS
The bottom one has been replaced with a rewrite based on comments from
Ævar. The second one needs more work, both in perl/Git.pm and prompt.c, to
give precedence to tty over SSH_ASKPASS when terminal is available.
Will defer till the next cycle.
* nd/commit-ignore-i-t-a (2012-01-16) 2 commits
- commit, write-tree: allow to ignore CE_INTENT_TO_ADD while writing trees
- cache-tree: update API to take abitrary flags
May want to consider this as fixing an earlier UI mistake, and not as a
feature that devides the userbase.
Will defer till the next cycle.
--------------------------------------------------
[Cooking]
* bl/gitweb-project-filter (2012-01-31) 8 commits
- gitweb: Make project search respect project_filter
- gitweb: improve usability of projects search form
- gitweb: place links to parent directories in page header
- gitweb: show active project_filter in project_list page header
- gitweb: limit links to alternate forms of project_list to active project_filter
- gitweb: add project_filter to limit project list to a subdirectory
- gitweb: prepare git_get_projects_list for use outside 'forks'.
- gitweb: move hard coded .git suffix out of git_get_projects_list
Seems to break test 9502.
* rt/completion-branch-edit-desc (2012-01-29) 1 commit
(merged to 'next' on 2012-01-31 at a0195c8)
+ completion: --edit-description option for git-branch
* jn/svn-fe (2012-01-27) 44 commits
(merged to 'next' on 2012-01-29 at 001a395)
+ vcs-svn/svndiff.c: squelch false "unused" warning from gcc
+ Merge branch 'svn-fe' of git://repo.or.cz/git/jrn into jn/svn-fe
+ vcs-svn: reset first_commit_done in fast_export_init
+ Merge branch 'db/text-delta' into svn-fe
+ vcs-svn: do not initialize report_buffer twice
+ Merge branch 'db/text-delta' into svn-fe
+ vcs-svn: avoid hangs from corrupt deltas
+ vcs-svn: guard against overflow when computing preimage length
+ Merge branch 'db/delta-applier' into db/text-delta
+ vcs-svn: implement text-delta handling
+ Merge branch 'db/delta-applier' into db/text-delta
+ Merge branch 'db/delta-applier' into svn-fe
+ vcs-svn: cap number of bytes read from sliding view
+ test-svn-fe: split off "test-svn-fe -d" into a separate function
+ vcs-svn: let deltas use data from preimage
+ vcs-svn: let deltas use data from postimage
+ vcs-svn: verify that deltas consume all inline data
+ vcs-svn: implement copyfrom_data delta instruction
+ vcs-svn: read instructions from deltas
+ vcs-svn: read inline data from deltas
+ vcs-svn: read the preimage when applying deltas
+ vcs-svn: parse svndiff0 window header
+ vcs-svn: skeleton of an svn delta parser
+ vcs-svn: make buffer_read_binary API more convenient
+ vcs-svn: learn to maintain a sliding view of a file
+ Makefile: list one vcs-svn/xdiff object or header per line
+ Merge branch 'db/svn-fe-code-purge' into svn-fe
+ vcs-svn: drop obj_pool
+ vcs-svn: drop treap
+ vcs-svn: drop string_pool
+ vcs-svn: pass paths through to fast-import
+ Merge branch 'db/strbufs-for-metadata' into db/svn-fe-code-purge
+ Merge branch 'db/length-as-hash' (early part) into db/svn-fe-code-purge
+ Merge branch 'db/vcs-svn-incremental' into svn-fe
+ vcs-svn: avoid using ls command twice
+ vcs-svn: use mark from previous import for parent commit
+ vcs-svn: handle filenames with dq correctly
+ vcs-svn: quote paths correctly for ls command
+ vcs-svn: eliminate repo_tree structure
+ vcs-svn: add a comment before each commit
+ vcs-svn: save marks for imported commits
+ vcs-svn: use higher mark numbers for blobs
+ vcs-svn: set up channel to read fast-import cat-blob response
+ Merge commit 'v1.7.5' into svn-fe
"vcs-svn"/"svn-fe" learned to read dumps with svn-deltas and support
incremental imports.
Will merge to 'master' in the second batch.
* jc/split-blob (2012-01-24) 6 commits
- chunked-object: streaming checkout
- chunked-object: fallback checkout codepaths
- bulk-checkin: support chunked-object encoding
- bulk-checkin: allow the same data to be multiply hashed
- new representation types in the packstream
- varint-in-pack: refactor varint encoding/decoding
Not ready.
I finished the streaming checkout codepath, but as explained in 127b177
(bulk-checkin: support chunked-object encoding, 2011-11-30), these are
still early steps of a long and painful journey. At least pack-objects and
fsck need to learn the new encoding for the series to be usable locally,
and then index-pack/unpack-objects needs to learn it to be used remotely.
Given that I heard a lot of noise that people want large files, and that I
was asked by somebody at GitTogether'11 privately for an advice on how to
pay developers (not me) to help adding necessary support, I am somewhat
dissapointed that the original patch series that was sent almost two
months ago still remains here without much comments and updates from the
developer community. I even made the interface to the logic that decides
where to split chunks easily replaceable, and I deliberately made the
logic in the original patch extremely stupid to entice others, especially
the "bup" fanboys, to come up with a better logic, thinking that giving
people an easy target to shoot for, they may be encouraged to help
out. The plan is not working :-(.
* jc/pull-signed-tag (2012-01-23) 1 commit
(merged to 'next' on 2012-01-23 at 4257553)
+ merge: use editor by default in interactive sessions
"git merge" in an interactive session learned to spawn the editor by
default to let the user edit the auto-generated merge message, to
encourage people to explain their merges better. Legacy scripts can
export MERGE_AUTOEDIT=no to retain the historical behaviour.
Will merge to 'master' in the second batch and deal with any fallout in
'master'.
--------------------------------------------------
[Discarded]
* mh/ref-api-rest (2011-12-12) 35 commits
. repack_without_ref(): call clear_packed_ref_cache()
. read_packed_refs(): keep track of the directory being worked in
. is_refname_available(): query only possibly-conflicting references
. refs: read loose references lazily
. read_loose_refs(): take a (ref_entry *) as argument
. struct ref_dir: store a reference to the enclosing ref_cache
. sort_ref_dir(): take (ref_entry *) instead of (ref_dir *)
. do_for_each_ref_in_dir*(): take (ref_entry *) instead of (ref_dir *)
. add_entry(): take (ref_entry *) instead of (ref_dir *)
. search_ref_dir(): take (ref_entry *) instead of (ref_dir *)
. find_containing_direntry(): use (ref_entry *) instead of (ref_dir *)
. add_ref(): take (ref_entry *) instead of (ref_dir *)
. read_packed_refs(): take (ref_entry *) instead of (ref_dir *)
. find_ref(): take (ref_entry *) instead of (ref_dir *)
. is_refname_available(): take (ref_entry *) instead of (ref_dir *)
. get_loose_refs(): return (ref_entry *) instead of (ref_dir *)
. get_packed_refs(): return (ref_entry *) instead of (ref_dir *)
. refs: wrap top-level ref_dirs in ref_entries
. get_ref_dir(): keep track of the current ref_dir
. do_for_each_ref(): only iterate over the subtree that was requested
. refs: sort ref_dirs lazily
. sort_ref_dir(): do not sort if already sorted
. refs: store references hierarchically
. refs.c: rename ref_array -> ref_dir
. struct ref_entry: nest the value part in a union
. check_refname_component(): return 0 for zero-length components
. free_ref_entry(): new function
. refs.c: reorder definitions more logically
. is_refname_available(): reimplement using do_for_each_ref_in_array()
. names_conflict(): simplify implementation
. names_conflict(): new function, extracted from is_refname_available()
. repack_without_ref(): reimplement using do_for_each_ref_in_array()
. do_for_each_ref_in_arrays(): new function
. do_for_each_ref_in_array(): new function
. do_for_each_ref(): correctly terminate while processesing extra_refs
Will be re-rolled. Discarded without prejudice.
* mm/zsh-completion-regression-fix (2012-01-17) 1 commit
(merged to 'next' on 2012-01-23 at 7bc2e0a)
+ bash-completion: don't add quoted space for ZSH (fix regression)
Superseded by a better fix already in 'master'.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-01 7:19 What's cooking in git.git (Jan 2012, #08; Tue, 31) Junio C Hamano
@ 2012-02-01 12:07 ` Jakub Narebski
2012-02-01 20:37 ` Junio C Hamano
2012-02-10 2:27 ` Junio C Hamano
1 sibling, 1 reply; 9+ messages in thread
From: Jakub Narebski @ 2012-02-01 12:07 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Bernhard R. Link
Junio C Hamano <gitster@pobox.com> writes:
> --------------------------------------------------
> [Cooking]
>
> * bl/gitweb-project-filter (2012-01-31) 8 commits
> - gitweb: Make project search respect project_filter
> - gitweb: improve usability of projects search form
> - gitweb: place links to parent directories in page header
> - gitweb: show active project_filter in project_list page header
> - gitweb: limit links to alternate forms of project_list to active project_filter
> - gitweb: add project_filter to limit project list to a subdirectory
> - gitweb: prepare git_get_projects_list for use outside 'forks'.
> - gitweb: move hard coded .git suffix out of git_get_projects_list
>
> Seems to break test 9502.
Hmmm... strange. I have applied my patches on top of earlier version
of project_filter commits:
- gitweb: Make project search respect project_filter
- gitweb: Improve projects search form
- gitweb: place links to parent directories in page header
- gitweb: add project_filter to limit project list to a subdirectory
and all gitweb tests passes.
I will investigate.
--
Jakub Narebski
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-01 12:07 ` Jakub Narebski
@ 2012-02-01 20:37 ` Junio C Hamano
2012-02-01 20:46 ` Junio C Hamano
0 siblings, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2012-02-01 20:37 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git, Bernhard R. Link
Jakub Narebski <jnareb@gmail.com> writes:
> Hmmm... strange. I have applied my patches on top of earlier version
> of project_filter commits:
>
> - gitweb: Make project search respect project_filter
> - gitweb: Improve projects search form
> - gitweb: place links to parent directories in page header
> - gitweb: add project_filter to limit project list to a subdirectory
>
> and all gitweb tests passes.
>
> I will investigate.
I am getting
7ad1b64084ff003f71fe749a3e5a74d071a193d8 is the first bad commit
commit 7ad1b64084ff003f71fe749a3e5a74d071a193d8
Author: Bernhard R. Link <brl+git@mail.brlink.eu>
Date: Mon Jan 30 21:05:47 2012 +0100
gitweb: move hard coded .git suffix out of git_get_projects_list
*** t9502-gitweb-standalone-parse-output.sh ***
ok 1 - setup
ok 2 - snapshot: full sha1
ok 3 - snapshot: shortened sha1
ok 4 - snapshot: almost full sha1
ok 5 - snapshot: HEAD
ok 6 - snapshot: short branch name (master)
ok 7 - snapshot: short tag name (first)
ok 8 - snapshot: full branch name (refs/heads/master)
ok 9 - snapshot: full tag name (refs/tags/first)
ok 10 - snapshot: hierarchical branch name (xx/test)
ok 11 - forks: setup
ok 12 - forks: not skipped unless "forks" feature enabled
ok 13 - forks: forks skipped if "forks" feature enabled
not ok - 14 forks: "forks" action for forked repository
#
# gitweb_run "p=foo.git;a=forks" &&
# grep -q ">foo/foo-forked\\.git<" gitweb.body &&
# grep -q ">fork of foo<" gitweb.body
#
ok 15 - forks: can access forked repository
ok 16 - forks: project_index lists all projects (incl. forks)
# failed 1 among 16 test(s)
The output file gitweb.body has this in it:
<div class="page_body">
<br /><br />
404 - No forks found
<br />
</div>
<div class="page_footer">
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-01 20:37 ` Junio C Hamano
@ 2012-02-01 20:46 ` Junio C Hamano
2012-02-02 4:21 ` Junio C Hamano
0 siblings, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2012-02-01 20:46 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git, Bernhard R. Link
Junio C Hamano <gitster@pobox.com> writes:
> I am getting
>
> 7ad1b64084ff003f71fe749a3e5a74d071a193d8 is the first bad commit
> commit 7ad1b64084ff003f71fe749a3e5a74d071a193d8
> Author: Bernhard R. Link <brl+git@mail.brlink.eu>
> Date: Mon Jan 30 21:05:47 2012 +0100
>
> gitweb: move hard coded .git suffix out of git_get_projects_list
>
> *** t9502-gitweb-standalone-parse-output.sh ***
> ...
> not ok - 14 forks: "forks" action for forked repository
> #
> # gitweb_run "p=foo.git;a=forks" &&
> # grep -q ">foo/foo-forked\\.git<" gitweb.body &&
> # grep -q ">fork of foo<" gitweb.body
> #
> ok 15 - forks: can access forked repository
> ok 16 - forks: project_index lists all projects (incl. forks)
> # failed 1 among 16 test(s)
>
> The output file gitweb.body has this in it:
>
> <div class="page_body">
> <br /><br />
> 404 - No forks found
> <br />
> </div>
> <div class="page_footer">
And of course the culprit turns out to be that "cute" expression.
-- >8 --
Subject: gitweb: do not use assignment with regexp replace in parameter
A recent patch made the code to generate a parameter to git_get_projects_list
a bit too cute, by introducing a new variable, assigning a value to it, and
then munging that value with s/// replacement, all in the parameter list.
The whole expression returns the number of replacements, not the resulting
value in the variable after s/// operation.
Split them into separate expressions, which also would make the resulting
lines shorter and less taxing on the brain.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
gitweb/gitweb.perl | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index b764d51..e074cd7 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6003,7 +6003,9 @@ sub git_forks {
die_error(400, "Unknown order parameter");
}
- my @list = git_get_projects_list((my $filter = $project) =~ s/\.git$//);
+ my $filter = $project;
+ $filter =~ s/\.git$//;
+ my @list = git_get_projects_list($filter);
if (!@list) {
die_error(404, "No forks found");
}
@@ -6062,7 +6064,9 @@ sub git_summary {
if ($check_forks) {
# find forks of a project
- @forklist = git_get_projects_list((my $filter = $project) =~ s/\.git$//);
+ my $filter = $project;
+ $filter =~ s/\.git$//;
+ @forklist = git_get_projects_list($filter);
# filter out forks of forks
@forklist = filter_forks_from_projects_list(\@forklist)
if (@forklist);
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-01 20:46 ` Junio C Hamano
@ 2012-02-02 4:21 ` Junio C Hamano
0 siblings, 0 replies; 9+ messages in thread
From: Junio C Hamano @ 2012-02-02 4:21 UTC (permalink / raw)
To: Jakub Narebski, Bernhard R. Link; +Cc: git
Junio C Hamano <gitster@pobox.com> writes:
> And of course the culprit turns out to be that "cute" expression.
>
> -- >8 --
> Subject: gitweb: do not use assignment with regexp replace in parameter
>
> A recent patch made the code to generate a parameter to git_get_projects_list
> a bit too cute, by introducing a new variable, assigning a value to it, and
> then munging that value with s/// replacement, all in the parameter list.
>
> The whole expression returns the number of replacements, not the resulting
> value in the variable after s/// operation.
>
> Split them into separate expressions, which also would make the resulting
> lines shorter and less taxing on the brain.
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
I've squashed this in to the offending commit and merged the result to the
'next' branch.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-01 7:19 What's cooking in git.git (Jan 2012, #08; Tue, 31) Junio C Hamano
2012-02-01 12:07 ` Jakub Narebski
@ 2012-02-10 2:27 ` Junio C Hamano
2012-02-10 4:09 ` Junio C Hamano
1 sibling, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2012-02-10 2:27 UTC (permalink / raw)
To: git; +Cc: tbushnell, tytso, Nguyễn Thái Ngọc Duy
Junio C Hamano <gitster@pobox.com> writes:
> What's cooking in git.git (Jan 2012, #08; Tue, 31)
> --------------------------------------------------
> ...
> [Graduated to "master"]
>
> * nd/clone-detached (2012-01-24) 12 commits
> (merged to 'next' on 2012-01-26 at 7b0cc8a)
> + clone: fix up delay cloning conditions
> (merged to 'next' on 2012-01-23 at bee31c6)
> + push: do not let configured foreign-vcs permanently clobbered
> (merged to 'next' on 2012-01-23 at 9cab64e)
> + clone: print advice on checking out detached HEAD
> + clone: allow --branch to take a tag
> + clone: refuse to clone if --branch points to bogus ref
> + clone: --branch=<branch> always means refs/heads/<branch>
> + clone: delay cloning until after remote HEAD checking
> + clone: factor out remote ref writing
> + clone: factor out HEAD update code
> + clone: factor out checkout code
> + clone: write detached HEAD in bare repositories
> + t5601: add missing && cascade
>
> "git clone" learned to detach the HEAD in the resulting repository when
> the source repository's HEAD does not point to a branch.
It turns out that this series, as a side effect, fixes a long-standing bug
that the --branch option cannot be used with the --mirror option.
I am tempted to merge it also to 1.7.9.1 maintenance track. The issue is
minor (you can always clone with --mirror and then switch the branch with
"checkout") and it does not look like it warrants further backpointing to
1.7.8 and older releases, though.
Comments and/or objections?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-10 2:27 ` Junio C Hamano
@ 2012-02-10 4:09 ` Junio C Hamano
2012-02-10 4:43 ` Nguyen Thai Ngoc Duy
0 siblings, 1 reply; 9+ messages in thread
From: Junio C Hamano @ 2012-02-10 4:09 UTC (permalink / raw)
To: git; +Cc: tbushnell, tytso, Nguyễn Thái Ngọc Duy
Junio C Hamano <gitster@pobox.com> writes:
> It turns out that this series, as a side effect, fixes a long-standing bug
> that the --branch option cannot be used with the --mirror option.
>
> I am tempted to merge it also to 1.7.9.1 maintenance track. The issue is
> minor (you can always clone with --mirror and then switch the branch with
> "checkout") and it does not look like it warrants further backpointing to
> 1.7.8 and older releases, though.
>
> Comments and/or objections?
Replying to myself.
Regardless of "'refs/heads/$branch' is not found because we do not look
for in the right place" issue, shouldn't the use of the --mirror without
the --bare option forbidden or at least warned about?
Cloning as --mirror, with a working tree with a current branch, would mean
the next fetch would directly try to update it by overwriting. We do pass
the --update-head-ok from pull, so "git pull" in such a repository should
be "sort of" safe, as long as the repository is never used to create its
own commits on whatever local branches set to be overwritten by --mirror,
but still I have this gut feeling that such an arrangement should at least
be discouraged.
Comments and/or opinions?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-10 4:09 ` Junio C Hamano
@ 2012-02-10 4:43 ` Nguyen Thai Ngoc Duy
2012-02-10 5:48 ` Junio C Hamano
0 siblings, 1 reply; 9+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-02-10 4:43 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, tbushnell, tytso
2012/2/10 Junio C Hamano <gitster@pobox.com>:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> It turns out that this series, as a side effect, fixes a long-standing bug
>> that the --branch option cannot be used with the --mirror option.
>>
>> I am tempted to merge it also to 1.7.9.1 maintenance track. The issue is
>> minor (you can always clone with --mirror and then switch the branch with
>> "checkout") and it does not look like it warrants further backpointing to
>> 1.7.8 and older releases, though.
>>
>> Comments and/or objections?
No objections. Does it fix a failed test? If not, should we add a test
to record this side effect fix?
> Replying to myself.
>
> Regardless of "'refs/heads/$branch' is not found because we do not look
> for in the right place" issue, shouldn't the use of the --mirror without
> the --bare option forbidden or at least warned about?
--mirror implies --bare in cmd_clone() if I read it correctly.
--
Duy
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: What's cooking in git.git (Jan 2012, #08; Tue, 31)
2012-02-10 4:43 ` Nguyen Thai Ngoc Duy
@ 2012-02-10 5:48 ` Junio C Hamano
0 siblings, 0 replies; 9+ messages in thread
From: Junio C Hamano @ 2012-02-10 5:48 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy; +Cc: git, tbushnell, tytso
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> No objections. Does it fix a failed test? If not, should we add a test
> to record this side effect fix?
No, it was just "I tried this and it did not work" reported elsewhere, and
it is not v1.7.9 regression. Having seen a failure by a real user, having
a test would be a good idea to protect the fix from regressing.
I actually wish that the commit 9e58504 (clone: --branch=<branch> always
means refs/heads/<branch>, 2012-01-16) wasn't taken hostage to the earlier
changes that add new feature (addition of --single-branch and delaying of
the cloning before checking the remote HEAD); which would have been an
easier sell without violating the usual "no new features to maintenance
track". And the thing is, I do not find this grave enough an issue that
deserves a separate implementation of a fix to be queued to maintenance
tracks.
> --mirror implies --bare in cmd_clone() if I read it correctly.
Yeah, what was I thinking... feeling stupid.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-02-10 5:48 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01 7:19 What's cooking in git.git (Jan 2012, #08; Tue, 31) Junio C Hamano
2012-02-01 12:07 ` Jakub Narebski
2012-02-01 20:37 ` Junio C Hamano
2012-02-01 20:46 ` Junio C Hamano
2012-02-02 4:21 ` Junio C Hamano
2012-02-10 2:27 ` Junio C Hamano
2012-02-10 4:09 ` Junio C Hamano
2012-02-10 4:43 ` Nguyen Thai Ngoc Duy
2012-02-10 5:48 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).