From 6cd62e795e3716aa0cbd2d1ff8c1b3a345803563 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 14 Feb 2024 16:58:56 +0100 Subject: Use modules, use XDG dirs --- lib/remotes/git.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/remotes/git.js') diff --git a/lib/remotes/git.js b/lib/remotes/git.js index 32230ae..f6d0c07 100644 --- a/lib/remotes/git.js +++ b/lib/remotes/git.js @@ -1,12 +1,12 @@ -const { exec } = require('child_process'); -const { promisify } = require('util'); +import { exec } from 'child_process'; +import { promisify } from 'util'; const internals = { // Promisified functions exec: promisify(exec), }; -module.exports = { +export default { canHandle() { // For the future: actually check if it's a valid git url -- cgit