• N
    push: respect --no-thin · f7c815c3
    Nguyễn Thái Ngọc Duy 提交于
    - From the beginning of push.c in 755225de, 2006-04-29, "thin" option
      was enabled by default but could be turned off with --no-thin.
    
    - Then Shawn changed the default to 0 in favor of saving server
      resources in a4503a15, 2007-09-09. --no-thin worked great.
    
    - One day later, in 9b288516 Daniel extracted some code from push.c to
      create transport.c. He (probably accidentally) flipped the default
      value from 0 to 1 in transport_get().
    
    From then on --no-thin is effectively no-op because git-push still
    expects the default value to be false and only calls
    transport_set_option() when "thin" variable in push.c is true (which
    is unnecessary). Correct the code to respect --no-thin by calling
    transport_set_option() in both cases.
    
    receive-pack learns about --reject-thin-pack-for-testing option,
    which only is for testing purposes, hence no document update.
    Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    f7c815c3
receive-pack.c 24.9 KB