Skip to content

Commit 1059065

Browse files
authored
Merge pull request #2178 from dscho/drop-obsolete-patches
Drop some obsolete patches
2 parents 3a29b23 + 71465b1 commit 1059065

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

Documentation/config.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,6 @@ include::config/reset.txt[]
408408

409409
include::config/sendemail.txt[]
410410

411-
include::config/sendpack.txt[]
412-
413411
include::config/sequencer.txt[]
414412

415413
include::config/showbranch.txt[]

Documentation/config/sendpack.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

credential.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ static void credential_getpass(struct credential *c)
136136
{
137137
if (!c->username)
138138
c->username = credential_ask_one("Username", c,
139-
(getenv("GIT_ASKPASS") ?
140-
PROMPT_ASKPASS : 0) |
141-
PROMPT_ECHO);
139+
PROMPT_ASKPASS|PROMPT_ECHO);
142140
if (!c->password)
143141
c->password = credential_ask_one("Password", c,
144142
PROMPT_ASKPASS);

send-pack.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,6 @@ int option_parse_push_signed(const struct option *opt,
3838
die("bad %s argument: %s", opt->long_name, arg);
3939
}
4040

41-
static int config_use_sideband = 1;
42-
43-
static int send_pack_config(const char *var, const char *value, void *unused)
44-
{
45-
if (!strcmp("sendpack.sideband", var))
46-
config_use_sideband = git_config_bool(var, value);
47-
48-
return 0;
49-
}
50-
5141
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
5242
{
5343
if (negative && !has_object_file(oid))
@@ -400,16 +390,14 @@ int send_pack(struct send_pack_args *args,
400390
const char *push_cert_nonce = NULL;
401391
struct packet_reader reader;
402392

403-
git_config(send_pack_config, NULL);
404-
405393
/* Does the other end support the reporting? */
406394
if (server_supports("report-status"))
407395
status_report = 1;
408396
if (server_supports("delete-refs"))
409397
allow_deleting_refs = 1;
410398
if (server_supports("ofs-delta"))
411399
args->use_ofs_delta = 1;
412-
if (config_use_sideband && server_supports("side-band-64k"))
400+
if (server_supports("side-band-64k"))
413401
use_sideband = 1;
414402
if (server_supports("quiet"))
415403
quiet_supported = 1;

0 commit comments

Comments
 (0)