summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit_ssh15
-rw-r--r--tests/test_git_config.py14
2 files changed, 29 insertions, 0 deletions
diff --git a/git_ssh b/git_ssh
index b1ab521e..ef840e9b 100755
--- a/git_ssh
+++ b/git_ssh
@@ -1,2 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2#
3# Copyright (C) 2009 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
2exec ssh -o "ControlMaster no" -o "ControlPath $REPO_SSH_SOCK" "$@" 17exec ssh -o "ControlMaster no" -o "ControlPath $REPO_SSH_SOCK" "$@"
diff --git a/tests/test_git_config.py b/tests/test_git_config.py
index 8773b0b9..ca818f48 100644
--- a/tests/test_git_config.py
+++ b/tests/test_git_config.py
@@ -1,4 +1,18 @@
1# -*- coding:utf-8 -*- 1# -*- coding:utf-8 -*-
2#
3# Copyright (C) 2009 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
2 16
3import os 17import os
4import unittest 18import unittest