summaryrefslogtreecommitdiff
path: root/tests/network
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-06-25 11:56:52 +0200
committerPatrick Steinhardt <ps@pks.im>2018-07-13 08:25:12 +0200
commit9994cd3f0ffcd7b28d26c82ecb6564bc4072dc2a (patch)
treef053f0a7f44be547e208d35447623617dfbd0340 /tests/network
parentf347a441c81c4e16dd54de07c5070eca8fccd5c8 (diff)
downloadlibgit2-9994cd3f0ffcd7b28d26c82ecb6564bc4072dc2a.tar.gz
treewide: remove use of C++ style comments
C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit.
Diffstat (limited to 'tests/network')
-rw-r--r--tests/network/refspecs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/network/refspecs.c b/tests/network/refspecs.c
index 15d36245b..1a65fd246 100644
--- a/tests/network/refspecs.c
+++ b/tests/network/refspecs.c
@@ -18,7 +18,7 @@ static void assert_refspec(unsigned int direction, const char *input, bool is_ex
void test_network_refspecs__parsing(void)
{
- // Ported from https://github.com/git/git/blob/abd2bde78bd994166900290434a2048e660dabed/t/t5511-refspec.sh
+ /* Ported from https://github.com/git/git/blob/abd2bde78bd994166900290434a2048e660dabed/t/t5511-refspec.sh */
assert_refspec(GIT_DIRECTION_PUSH, "", false);
assert_refspec(GIT_DIRECTION_PUSH, ":", true);
@@ -40,8 +40,8 @@ void test_network_refspecs__parsing(void)
* code. They will be caught downstream anyway, but we may want to
* have tighter check later...
*/
- //assert_refspec(GIT_DIRECTION_PUSH, "refs/heads/master::refs/remotes/frotz/xyzzy", false);
- //assert_refspec(GIT_DIRECTION_PUSH, "refs/heads/maste :refs/remotes/frotz/xyzzy", false);
+ /*assert_refspec(GIT_DIRECTION_PUSH, "refs/heads/master::refs/remotes/frotz/xyzzy", false); */
+ /*assert_refspec(GIT_DIRECTION_PUSH, "refs/heads/maste :refs/remotes/frotz/xyzzy", false); */
assert_refspec(GIT_DIRECTION_FETCH, "refs/heads/*:refs/remotes/frotz/*", true);
assert_refspec(GIT_DIRECTION_FETCH, "refs/heads/*:refs/remotes/frotz", false);